XBROWSE Questions

XBROWSE Questions

Postby byte-one » Thu Nov 07, 2019 10:49 am

1.)
I have 2 xbrowses with identical number of rows . The first xbrowse have a vert-scroll , the second are not. Now i will synchronize the actual row in the second browse by moving of the first browse.
Currently in the first xbrowse i have:
Code: Select all  Expand view
….ON CHANGE oBrw2:nArrayAt := oBrw1:nArrayAt,oBrw2:refresh();

It is functioning, but the visible rows are different.

2.)
If i will paint nColdivider in a col with another color, this color are not in all cases are painted correct with the color from this col when i change the lines!
Code: Select all  Expand view
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:aCols[i]:nColDividerStyle := LINESTYLE_BLACK
oBrw:aCols[i]:nColDividerColor := CLR_WHITE
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: XBROWSE Questions

Postby ukoenig » Thu Nov 07, 2019 12:49 pm

Günther,

1.)
I have 2 xbrowses with identical number of rows . The first xbrowse have a vert-scroll , the second are not. Now i will synchronize the actual row in the second browse by moving of the first browse.


I needed the same solution for a language-translation

browser 1

:lColChangeNotify := .t.
:bChange := { || If( oBrw1:lFocused, SyncBrowses( oBrw1, oBrw2 ), nil ) }
:bGotFocus := { || SyncBrowses( oBrw1, oBrw2 ) }

browser 2

:lColChangeNotify := .t.
:bChange := { || If( oBrw2:lFocused, SyncBrowses( oBrw2, oBrw1 ), nil ) }
:bGotFocus := { || SyncBrowses( oBrw2, oBrw1 ) }

//------------

FUNCTION SYNCBROWSES( oBrw1, oBrw2 )

WITH OBJECT oBrw2
:BookMark := oBrw1:BookMark
:nRowSel := oBrw1:nRowSel
:Refresh()
END

RETURN NIL

regards
Uwe :D
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 Questions

Postby nageswaragunupudi » Thu Nov 07, 2019 1:47 pm

I remember to have posted a sample for synchronized browses a long time back in this forum. Using Mr. Uwe's tool we may find it I guess.
Regards

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

Re: XBROWSE Questions

Postby ukoenig » Thu Nov 07, 2019 2:47 pm

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 91 guests