Mossy Posted November 20, 2023 Share Posted November 20, 2023 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2023 Share Posted November 20, 2023 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. Quote Link to comment Share on other sites More sharing options...
Mossy Posted November 20, 2023 Author Share Posted November 20, 2023 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2023 Share Posted November 20, 2023 Initially, you would say that you are using a mobile component! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 20, 2023 Share Posted November 20, 2023 35 minutes ago, Mossy said: UnimEdit1.JSInterface.JSCall('labelElement.applyStyles', [UnimEdit1.FieldLabelFont.ToStyleString(True)]); Works for me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.