Yes. The function is GetSysColor. Here is the syntax:
#DEFINE COLOR_BTNFACE 15
declare integer GetSysColor in "win32api" integer nIndex
lnvar = GetSysCOlor(COLOR_BTNFACE)
>Hi Everyone,
>
>I know from previous threads that the background color of a pushbutton comes from the windows color scheme and that it cant be changed.
>
>However, I cant seem to find a way of programatically returning what color windows has set for a buttons backcolor.
>I need to know so then I can stop the user from setting the forecolor to be the same as the windows defined backcolor (!)
>
>Is there an API call for this?
>
>Cheers.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao