VL-Win Placeholder color

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

VL-Win Placeholder color

Post by atostaine »

V14SP2 adds a property for Placeholder color for component editField. How can I reference a color that is defined in a theme?

I've tried PlaceholderColor(#Theme01<Green>) but the editor tells me the class of style doesn't contain a default property.

I've tried using a DrawStyle and a VS.Style
Art Tostaine
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: VL-Win Placeholder color

Post by dannyoorburg »

Hi,

You can probably use

PlaceholderColor(#Theme01<Green>.TextColor)

Provided you defined the style using the textcolor property....

(Doing this on my phone so guessing a bit 😊)

You might not be able to do this on the define_com. Might have to be at runtime.

Give it a try...

Danny
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: VL-Win Placeholder color

Post by atostaine »

Thanks for the reply Danny. I wasn't able to get the define_com syntax rtight, but changing it at runtime is working.

Art
Art Tostaine
Post Reply