Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Changing Editbox background color (EditString)
Changing Editbox background color (EditString) [message #15108] |
Tue, 01 April 2008 12:22  |
alex100
Messages: 118 Registered: November 2007
|
Experienced Member |
|
|
Hi,
I would like to change bk color of a EditString (edit) when the change event takes place. Is there any other way to do this appart from rewriting the Paint event?
Thank you,
Alex
|
|
|
|
|
Re: Changing Editbox background color (EditString) [message #15117 is a reply to message #15116] |
Tue, 01 April 2008 16:27   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
1. type the name of the ctrl then '.When'. As almost all callbacks are of the form WhenSomething this gives a list of the callbacks.
2. Check the source. Press Ctrl-Q, type EditField, then click on one of the options at the bottom of the screen to go to the header file.
In this case the action you want is default ctrl callback WhenAction, so:
editfield <<= THISBACK(OnChange);
or
editfield.WhenAction = THISBACK(OnChange); will work.
James
[Updated on: Tue, 01 April 2008 16:28] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 14:15:33 CEST 2025
Total time taken to generate the page: 0.03971 seconds
|