FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse nFreeze
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
xBrowse nFreeze
Posted: Thu Jan 08, 2009 09:57 AM

Hi all,

i have xBrowse with an array as data source.
Each row has 3 columns.

The first 2 colums are for searching and the third column is editable.
nMarqueeStyle is MARQSTYLE_HIGHLCELL.

I want the browse starting with the cursor placed on the 3rd column.
I tried this by setting nFreeze to '2'.
But when the browse starts the 1th column is selected.

Am i doing something wrong?

Regards,
Detlef

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: xBrowse nFreeze
Posted: Thu Jan 08, 2009 10:20 AM
Mr. Detlef
What about

oBrw:=3

ACTIVATE DIALOG oDLg ON INIT (oBrw:SetFocus(),oBrw:nColSel:=3)


Regards

Anser
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse nFreeze
Posted: Thu Jan 08, 2009 10:32 AM
Hello Detlef,

There is still another way :
If You want to show the 3. Col at the first left-position :
( it moves the scrollbar to Col 3 )

I := 1
FOR i := 1 to 3
     oBrw:GoRight()
NEXT


egards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
Re: xBrowse nFreeze
Posted: Thu Jan 08, 2009 10:44 AM

Hi Anser and Uwe,

thanks for your suggestions.
They both work fine.

I only wonder about the none working nFreeze ...

Regards,
Detlef

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse nFreeze
Posted: Thu Jan 08, 2009 11:12 AM

Hello Detlef,

< nFreeze > just keeps the selected Col's on screen ( doesn't set col-position ).

1 2 = Freeze

1 2 3 4 5 = All Col's

You move the horizontal scrollbar to the right

1 2 4 5 = visible

Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse nFreeze
Posted: Thu Jan 08, 2009 08:32 PM

Please Try:

ACTIVATE WINDOW / DIALOG ..... ON INIT oBrw:SetPos( 1, 3 ) // first row, third column

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion