[WD20]Caption color change in input controls

Startbeitrag von Sivaprakash am 15.06.2016 06:50


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


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.

von Curtis - am 15.06.2016 13:46
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"

von Stefan Bentvelsen - am 15.06.2016 14:31
Thanks Stefan. It works.

von Sivaprakash - am 23.06.2016 12:55
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.