Background colour
Background colour
How can I set a background colour for windows or container gadgets? Thanks in advance for any suggestion.
Re: Background colour
Maybe you could look at my OutlookGadget:Seldon wrote:How can I set a background colour for windows or container gadgets? Thanks in advance for any suggestion.
viewtopic.php?t=7383
there I use a ContainerGadget with a different color...
I am to provide the public with beneficial shocks.
Alfred Hitshock
Thanks a lot. I added the API calls you use in this way:
hGadget=ContainerGadget(2,0,0,486,316,#PB_Container_Single)
hBrush = CreateSolidBrush_(GetSysColor_(#COLOR_3DHILIGHT ) )
SetClassLong_(hGadget, #GCL_HBRBACKGROUND, hBrush)
, though the changement affects ALL the gadgets (buttons, texts, containers) I build in my program. Must the hGadget structure be initialized? If yes, that could explain such effect as if hGadget is
NULL, SetClassLong() maybe changes everything.
hGadget=ContainerGadget(2,0,0,486,316,#PB_Container_Single)
hBrush = CreateSolidBrush_(GetSysColor_(#COLOR_3DHILIGHT ) )
SetClassLong_(hGadget, #GCL_HBRBACKGROUND, hBrush)
, though the changement affects ALL the gadgets (buttons, texts, containers) I build in my program. Must the hGadget structure be initialized? If yes, that could explain such effect as if hGadget is
NULL, SetClassLong() maybe changes everything.

