DCBROWSE row cursor hilite foreground color express++ 258

This forum is for eXpress++ general support.
Post Reply
Message
Author
gnewcomb
Posts: 17
Joined: Thu Jan 28, 2010 7:06 pm
Location: Colorado Springs, Colorado USA

DCBROWSE row cursor hilite foreground color express++ 258

#1 Post by gnewcomb »

The below sample program does not show the default DC_BrowPres() row hilite color of white/blue correctly. The white foreground color is not showing. Is there a workaround?

Code: Select all

#INCLUDE "dcdialog.CH"
#INCLUDE "GRA.CH"

PROCEDURE Main()

LOCAL aBrowPres, GetList[0], oBrowse, aDir

aDir := Directory()

aBrowPres := DC_BrowPres()

@ 0,0 DCBROWSE oBrowse DATA aDir SIZE 20,20 FIT ;
      PRESENTATION aBrowPres ;
      COLOR {|| { GRA_CLR_BLUE,GRA_CLR_WHITE } } 

DCBROWSECOL ELEMENT 1 HEADER 'File Name' PARENT oBrowse WIDTH 10

DCBROWSECOL ELEMENT 2 HEADER 'File Date' PARENT oBrowse WIDTH 10

DCREAD GUI FIT TITLE 'Presentation Test'

RETURN


PROC appsys ; return

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: DCBROWSE row cursor hilite foreground color express++ 25

#2 Post by digitsoft »

Code: Select all

       @ 7.0,0.6 DCBROWSE oFacturaPendiente  DATA aFacturaPendiente  SIZE 72.3,10.2  ; 
                 PARENT oMyGroup2 ;
                 COLOR {||IIF(oFacturaPendiente:arrayElement%2==0,{nil,XBPSYSCLR_INFOBACKGROUND},{nil,GraMakeRGBColor({230,252,213})})}
Watch this Code
Paulino Nolberto
Nolberto Paulino
Regards

gnewcomb
Posts: 17
Joined: Thu Jan 28, 2010 7:06 pm
Location: Colorado Springs, Colorado USA

Re: DCBROWSE row cursor hilite foreground color express++ 25

#3 Post by gnewcomb »

Attached are screen shots of the different behavoir between 257 and 258 on my system.
Attachments
258 behavior.jpg
258 behavior.jpg (39.1 KiB) Viewed 8485 times
257 behavior.jpg
257 behavior.jpg (40.54 KiB) Viewed 8485 times

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCBROWSE row cursor hilite foreground color express++ 25

#4 Post by rdonnay »

This will work with all versions of Xbase++ and eXpress++:

Code: Select all

@ 0,0 DCBROWSE oBrowse DATA aDir SIZE 20,20 FIT ;
      PRESENTATION aBrowPres ;
      COLOR {|| { GRA_CLR_BLUE,GRA_CLR_WHITE,GRA_CLR_WHITE,GRA_CLR_BLUE } }
// J. Duijf 11-03-2011
// Workaround for PDR 6365
// The colorBlock should return nil or a 4 element array to prevent an incorrect
// Hilite forground color.
// {CellFGColor,CellBGColor,CellHiliteFGColor,CellHiliteBGColor}
// The highlite colors come from the presentation parameters.
// If undefined, the default BG/FG hilite colors are BLUE/WHITE
The eXpress train is coming - and it has more cars.

Post Reply