Page 1 of 1

System Color for DCPUSHBUTTONXP

Posted: Thu Oct 30, 2014 1:30 am
by Andy Edward
Hi,

Is there a way to get the system color's RGB info?

I want to use the colors for DCPUSHBUTTONXP foreground and background parameters.

I realize that XP, Windows 7, and Windows 8 have different system colors, so is there a method that can give me this info?

So I only need to check the system color's RGB and set the colors accordingly to my DCPUSHBUTTONXP

Best Regards,

Andy

Re: System Color for DCPUSHBUTTONXP

Posted: Thu Oct 30, 2014 7:57 am
by rdonnay
Try this:

Code: Select all

aRGB := GraGetRGBIntensity( GRA_CLR_DARKPINK ) 
It will return an array of 3 elements: Red, Green, Blue