xBrowse nFreeze

xBrowse nFreeze

Postby Detlef Hoefner » Thu Jan 08, 2009 9: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Re: xBrowse nFreeze

Postby anserkk » Thu Jan 08, 2009 10:20 am

Mr. Detlef
What about

oBrw:nColSel:=3

Code: Select all  Expand view
ACTIVATE DIALOG oDLg ON INIT (oBrw:SetFocus(),oBrw:nColSel:=3)


Regards

Anser
Last edited by anserkk on Thu Jan 08, 2009 10:44 am, edited 1 time in total.
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: xBrowse nFreeze

Postby ukoenig » 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 )

Code: Select all  Expand view
I := 1
FOR i := 1 to 3
     oBrw:GoRight()
NEXT


egards
Uwe :lol:
Last edited by ukoenig on Thu Jan 08, 2009 10:50 am, edited 1 time in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse nFreeze

Postby Detlef Hoefner » 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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Re: xBrowse nFreeze

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse nFreeze

Postby nageswaragunupudi » Thu Jan 08, 2009 8:32 pm

Please Try:

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests