 |
Bay Six Software Beyond the Basics
|
View previous topic :: View next topic |
Author |
Message |
STPendl Full Member
Joined: 20 Aug 2007 Posts: 161 Location: Austria
|
Posted: May 12th, 2008, 11:16am Post subject: Demos for changing control colors |
|
|
There are some demos floating around using WMLiberty to change the control colors of individual controls.
A listbox demo is posted here, a textbox demo is posted on conforums and a statictext demo is posted on the Yahoo! group, I think.
Since all those demos share a common structure, I think Brent is responsible for their birth, so I am posting here in his forum.
It would make it easier to point people to a common place, so consolidating those demos to a single one, which shows how to change colors for any control individually.
There have been requests to change the background color of textboxes, if the entry was wrong too.
I think this should be doable, using the RedrawWindow API function as shown by Brent in ...Color$ variables subtlety workaround ... ?
What do you think about this  _________________ Stefan
Any code I post can be freely used, just give credit. |
|
Back to top |
|
 |
Brent Site Admin
Joined: 01 Jul 2005 Posts: 793
|
Posted: May 13th, 2008, 6:54am Post subject: Re: Demos for changing control colors |
|
|
STPendl wrote: | There have been requests to change the background color of textboxes, if the entry was wrong too.
I think this should be doable, using the RedrawWindow API function as shown by Brent in ...Color$ variables subtlety workaround ... ? |
Good idea, Stefan!
Toggle TextBox Colors _________________ Brent |
|
Back to top |
|
 |
STPendl Full Member
Joined: 20 Aug 2007 Posts: 161 Location: Austria
|
Posted: May 13th, 2008, 7:38pm Post subject: Re: Demos for changing control colors |
|
|
Thanks for the demo.
We can set the initial text box color by setting TextBoxColor$ just before the textbox definition, but there is no way to do this for several other controls.
I do have a demo for statictext (White on Blue), since it uses the same structure and branch names, so I assume it is yours Brent.
Would you like to have it sent to you, so you could post it on the snippets board for verification too? _________________ Stefan
Any code I post can be freely used, just give credit. |
|
Back to top |
|
 |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|