Jump to content
uniGUI Discussion Forums
Sign in to follow this  
zhyhero

Any idea to set color with UniCheckBox.FieldLabel?

Recommended Posts

3 hours ago, zhyhero said:

I want to set the unicheckbox.fieldlabel's color.

Hi,

You can use this approach for now:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  TUniEdit(UniCheckBox1).FieldLabelFont.Color := clGreen;
end;

 

Share this post


Link to post
Share on other sites
3 hours ago, Sherzod said:

Hi,

You can use this approach for now:


procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  TUniEdit(UniCheckBox1).FieldLabelFont.Color := clGreen;
end;

 

Thank you .

I will try this.

UniCheckBox.FieldLabelFont is missing ?

Share this post


Link to post
Share on other sites

You have to type cast the TUniCheckBox to a TUniEdit because only TUniEdit exposes the property "FieldLabelFont", hence you need to write TUniEdit(UniCheckBox1).FieldLabelFont.Color := clGreen;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×