FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posted: Mon Mar 10, 2008 04:24 PM
Hello,

In the new Tool, i changed all radio's
to xBrowse.
I save the contents of the Row-position of the Browsers
when i close the dialog.
When i open the Dialog again, the Browser must show
the saved Row-Positions.



Regards
Uwe :-)

[/img]
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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posted: Mon Mar 10, 2008 04:30 PM

Uwe,
I use:
local nIndex:=0

 MENUITEM "Select" ACTION ( oBrw:GoTop(), oBrw:nArrayAt := nIndex, oBrw:Refresh() )
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Row-Position at dialog-start
Posted: Mon Mar 10, 2008 04:47 PM

Hello Otto,

I don't want the position at top.
The row-positions of the browsers are saved in a ini-file.
When i open the dialog, i need the old positions.
The bar starts allways with top-positon.
With oBrw:nArrayAt := 3 the bar-position is still on Top.

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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posted: Mon Mar 10, 2008 05:08 PM

Hello Uwe,
now I understand what you mean.
I don't have a professional solution.
But you can try with
For I = 1 to n
oBrw:GoDown()
next

But you better wait till NageswaraRao is online.
Regards,
Otto

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Show saved positions of Row in xBrowse
Posted: Mon Mar 10, 2008 05:47 PM

Hello Otto,

oBrw:nArrayAt := 3 works
oBrw:Refresh()

I had to do this after the Xbrowse creation.
( see picture )

Now it shows at start the saved positions.
The problem is, the user has to scroll to top
when he wants to see all options.

Maybe i find out what to do.

Regards
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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posted: Mon Mar 10, 2008 05:49 PM

Did you try:

N:=3

For I = 1 to n
oBrw:GoDown()
next
Regards,
Otto

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
To show old browse-selections and all browser-rows.
Posted: Mon Mar 10, 2008 07:21 PM
To show old selections and all Browse-positions
i changed the color of the old row-selections
( see screenshot )

// Color Gradient End
// -------------------------
// save old var to show color
// ----------------------------------
s_COLEND := e_COLEND 

oBrw5 := TXBrowse():New( oDlg5 )
oBrw5:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw5:nColDividerStyle	 := LINESTYLE_BLACK
oBrw5:nRowDividerStyle := LINESTYLE_BLACK
oBrw5:SetArray( aCOLEND )
oBrw5:aCols[ 1 ]:cHeader = Padr("No.", 3)
oBrw5:aCols[ 2 ]:cHeader = Padr("Select", 11)
oBrw5:lHScroll := .F.
oBrw5:lVScroll := .F.

// shows old selected value
// ---------------------------------
oBrw5:bClrStd := {|| {CLR_BLACK, ;
IIF( oBrw5:nArrayAt = s_COLEND, CLR_YELLOW, CLR_WHITE ) } }

// New color selection
// --------------------------
oBrw5:bLClicked := { | nRow, nCol | e_COLEND := oBrw5:nRowSel  }

oBrw5:CreateFromResource( 400 )


Regards
Uwe :-) [/code]
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: 39
Joined: Tue Jan 24, 2006 06:16 PM
Re: To show old browse-selections and all browser-rows.
Posted: Tue Mar 11, 2008 12:53 PM

Hey guys,

Seems like xBrowse is taking over from "Standard" TBrowse?
I see more and more people use xBrowse.

Patrick

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Row-Position at dialog-start
Posted: Wed Mar 12, 2008 01:38 AM
ukoenig wrote:Hello Otto,

I don't want the position at top.
The row-positions of the browsers are saved in a ini-file.
When i open the dialog, i need the old positions.
The bar starts allways with top-positon.
With oBrw:nArrayAt := 3 the bar-position is still on Top.

Regards
Uwe :-)


Please try this code.
   oBrw:nArrayAt := 3
   oBrw:nRowSel  := 3
Regards



G. N. Rao.

Hyderabad, India
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Possible, to define a Row-Startpos. in xBrowse(Array) ?
Posted: Wed Mar 12, 2008 08:24 AM

Dear ukoenig,
Do you think about .... gradient titlebar?
Only few fwusers use these classes...
you must create an utility for all Not for few..

Best Regards, Saludos



Falconi Silvio

Continue the discussion