Page 1 of 1

VL-Win Placeholder color

Posted: Tue Jun 05, 2018 1:05 am
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

Re: VL-Win Placeholder color

Posted: Tue Jun 05, 2018 7:38 am
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

Re: VL-Win Placeholder color

Posted: Tue Jun 05, 2018 11:44 pm
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