DC_XbpGetPres does not work properly when DISABLEDCOLOR set
Posted: Sat Dec 14, 2013 2:32 pm
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.
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.