Re: Win32Lib: Button Color
- Posted by cklester <cklester at yahoo.com> Jul 14, 2004
- 584 views
Tommy Carlier wrote: > > Don wrote: > > Nods, it wont work unless the control is completely owner-drawn. If > > alot of people would be interested in colored buttons, I could always > > create some easy to use versions in xControls... its what its for after > > all =) It might take me awile to code them up, but send me email to > > EuNexus at yahoo.com if this is something you would like to have added. > > Or it can be built as a EuControl. It would certainly be a good idea if > someone created > a powerful Button-control (xButton or EuButton). Possible features of this > button-control: > - different visual styles (flat, 3D, with/without border, ...) > - customizable colors (background-color, text-color, border-color, ...) and > fonts > - image AND text at the same time (text next to or under image) > - checkable button (button can be checked/unchecked) > - autoclick-feature (if autoclick is enabled, holding down the mousebutton on > the button > will keep sending click-events) > - ... > > Please post more features you would like to see for this advanced > button-control. That's all good stuff. I think Derek's idea about using a child window is simple enough. There's also a win32lib demo showing a "color button" that pops up a color selector dialog box. It uses an XPM and is cleverly done. Check it out! :) -=ck "Programming in a state of EUPHORIA."