FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse freeze and goto column
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
xbrowse freeze and goto column
Posted: Fri Jun 04, 2010 04:06 PM
To All

I am trying to migrate all my listboxes to xbrowse .. specifically 2 commands in Hernans txbrowse ..

I need to go to a specific column on dialog init .. oBrow:GoToCol(nCOL )

Code (fw): Select all Collapse
ACTIVATE DIALOG oEMP NOWAIT    ;
    ON INIT ( oEMP:Move( 0, 0 ),;
              IF( (xSUPER = 'Y'.or. xMGR = 'Y' .or. xADMIN = 'Y'), ,oBTN4:HIDE() ), ;
                  oBROW:GoToCol(nCOL) )


and to freeze 5 columns to the left of the scrolling listbox ..

oBROW:nFREEZE := 5

Thanks in advance

Rick Lipkin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xbrowse freeze and goto column
Posted: Sat Jun 05, 2010 11:09 AM

XBrowse:

oBrw:nFreeze := 5 // same syntax in xbrowse too

Instead of oBrw:GotoCol, XBrowse has a more powerful method:

oBrw:SetPos( nRow, nCol, [ lPixel DEFAULT .f. ] )

You can say oBrw:SetPos( 1, 6 ) to position cursor in the 1st row 6th column.

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xbrowse freeze and goto column
Posted: Sat Jun 05, 2010 02:46 PM
Rao

Good to hear back from an old friend .. I have been out of the FWH community for some time and have decided to do some contracting work and perhaps market many of my applications I have built over the many years ..

Human Resources, Time and reporting, Inventory, Sales and route mgmt, Accounts receivable\payables, Property Mgmt, fleet Vehicle reservations, church and organizational memberships, purchasing and requisitions ..

Thinking about forming a company ( limited liability corporation 'llc' ) and need a business partner .. if you have a desire to come to South Carolina, USA .. let me know !!!

I have a new e-mail address r1.1955@live.com ..

Thanks for your quick help !

Rick Lipkin



Continue the discussion