|
| [WD20]Caption color change in input controls |
| Iniciado por guest, 15,jun. 2016 08:50 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 15,junio 2016 - 08:50 |
Hello,
Using Windev 20
I would like to change the caption color of input controls (eg. Edit control, Combo Box etc.) when it gets focus and back to normal when the cursor leaves that control through code. Is it possible ?
I tried all possible ways, could not find an option to change it. Any ways ?
Happiness Always BKR Sivaprakash |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2016 - 12:46 |
Hi,
For example, the following code displays in yellow: EDT_Edit1..Caption = gPen(DarkYellow) +"TEST"
I don't have version 20, but In previous versions it worked just fine.
I Hope that this helps,
Bruno |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2016 - 15:46 |
| It doesn't look like there is a property for caption color. Perhaps you could get rid of the captions on your controls and use static control labels. Then you could just change the color of the static controls in the entry and exit processes of the edit/combo controls. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2016 - 16:31 |
Hi Sivaprakash,
may be the following will work (not tested, but I use this to change the color of the title of appointments of a scheduler control):
MyControl..caption = gPen(Red) + "MyCaption" |
| |
| |
| | | |
|
| | | | |
| | |
|