DC_XbpGetPres does not work properly when DISABLEDCOLOR set

This forum is for eXpress++ general support.
Post Reply
Message
Author
rsmarks
Posts: 27
Joined: Tue Nov 26, 2013 9:19 pm

DC_XbpGetPres does not work properly when DISABLEDCOLOR set

#1 Post by rsmarks »

DC_XbpGetPres does not work properly when used to set the disabled foreground color if DCGETOPTIONS sets the DISABLEDCOLOR. However, DCSAY GETPRESENTATION does work properly. I had expected that I could just use DC_XpbGetPres once instead of having to specify GETPRESENTATION on every get, but that does not seem to be the case. In the example program, both disabled gets should look the same. They do not.

LOCAL GetList:={}, cData1:="Data 1", cData2:="Data 2", GetOptions
LOCAL aGetPres:={ { XBP_PP_DISABLED_FGCLR, GRA_CLR_BLACK } }

DC_XbpGetPres(aGetPres)

@ 0,0 DCSAY "DATA 1" GET cData1 WHEN {|| .F.}
@ 2,0 DCSAY "DATA 2" GET cData2 WHEN {|| .F.} GETPRESENTATION aGetPres

DCGETOPTIONS DISABLEDCOLOR GRA_CLR_BACKGROUND

DCREAD GUI ADDBUTTONS FIT OPTIONS GetOptions

Thanks.

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: DC_XbpGetPres does not work properly when DISABLEDCOLOR

#2 Post by Tom »

Take a look at DC_GetOptDefault().
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

rsmarks
Posts: 27
Joined: Tue Nov 26, 2013 9:19 pm

Re: DC_XbpGetPres does not work properly when DISABLEDCOLOR

#3 Post by rsmarks »

Tom,

In my actual program I use DC_GetOptDefault, but for the sake of simplicity I did not include it in my example. It doesn't matter whether I set DISABLEDCOLOR using DC_GetOptDefault or with DCGETOPTIONS, DC_XbpGetPres still does not work properly.

Thanks,

Bob

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

Re: DC_XbpGetPres does not work properly when DISABLEDCOLOR

#4 Post by rdonnay »

I will get to this as soon as I can. Things get a little busy on Mondays.
The eXpress train is coming - and it has more cars.

Post Reply