Jump to content

TUniEdit


Mossy

Recommended Posts

Good morning

How to change the FieldLabelFont Color at run time. Depending the theme selected the labels colour is not visible and would like to change it at runtime depending what theme is selected. Assigning the value at runtime gets ignored.

Link to comment
Share on other sites

Hello,

47 minutes ago, Mossy said:

How to change the FieldLabelFont Color at run time. Depending the theme selected the labels colour is not visible and would like to change it at runtime depending what theme is selected. Assigning the value at runtime gets ignored.

 

Link to comment
Share on other sites

Thank you for reply, I have tried but is not working.

I am using version 1.95.0.1575.

UnimEdit1.FieldLabelFont.Color:= clRed;
UnimEdit1.JSInterface.JSCall('labelElement.applyStyles', [UnimEdit1.FieldLabelFont.ToStyleString(True)]);

tried this as well

 

UnimEdit1.FieldLabelFont.Color:= clRed;

 

UnimEdit1.JSInterface.JSCall('labelElement.applyStyles', [UnimEdit1.FieldLabelFont.ToString(True)]);

regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...