Page 1 of 1

xBrowse and Windows Vista ( Question )

Posted: Wed May 21, 2008 6:42 pm
by ukoenig
Hello,

Because of a new computer, i'm working with
Windows Vista now.
I noticed a funny effect when changing the focus
between browsers in a dialog :
The rows in the other browsers, where the cursor has been before,
when i change the focus, are changing to black.
In windows 2000 it is ok.
I use nothing special

Image

Code: Select all

// Browser 1

oLbx1 := TXBrowse():New( oFld:aDialogs[1] )
oLbx1:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbx1:nColDividerStyle  := LINESTYLE_BLACK
oLbx1:nRowDividerStyle := LINESTYLE_BLACK

oLbx1:SetArray( aBRCOLOR1 )
oLbx1:aCols[ 1 ]:cHeader = Padr("No.", 3)
oLbx1:aCols[ 2 ]:cHeader = Padr("Start", 19)
oLbx1:lHScroll := .F.
oLbx1:lVScroll := .F.
oLbx1:lFooter := .F.
oLbx1:bLClicked := { | nRow, nCol | Bs_START := oLbx1:nRowSel, ;
Bs_COLOR1 := B_COLORS(Bs_START), oB_COLOR1:Refresh(), ;
oBMP3:Refresh(), oBMP4:Refresh(), oBMP5:Refresh(), oBMP6:Refresh(), ;
oBMP7:Refresh(), oBMP8:Refresh(), oBMP9:Refresh(), ;
oBMP10:Refresh(), oBMP11:Refresh(), oBMP12:Refresh(), ;
oBMP18:Refresh() }

oLbx1:aCols[ 2 ]:AddResource("Black")
oLbx1:aCols[ 2 ]:AddResource("White")
oLbx1:aCols[ 2 ]:AddResource("Blue")
oLbx1:aCols[ 2 ]:AddResource("Green")
oLbx1:aCols[ 2 ]:AddResource("Red")
oLbx1:aCols[ 2 ]:AddResource("Yellow")
oLbx1:aCols[ 2 ]:AddResource("Magenta")
oLbx1:aCols[ 2 ]:AddResource("Farbwahl")
oLbx1:aCols[ 2 ]:bBmpData := {|| oLbx1:nArrayAt }
oLbx1:aCols[ 2 ]:bStrData := {|| oLbx1:aRow[2] }   

oLbx1:CreateFromResource( 210 )

I notice this effect the first time.

Regards

Uwe :lol: [/code]

Posted: Wed May 21, 2008 8:27 pm
by Otto
Hello Uwe,

I have the same problem.
As a workaround I use:

oBrw:bClrSel := {|| { RGB(173,183,48),RGB(250,247,107) } }
Regards,
Otto

Focus in Xbrowse with Vista

Posted: Wed May 21, 2008 8:58 pm
by ukoenig
Hello Otto,

thank you very much.
The problem is solved.

Image

Best Regards

Uwe[/img]