zhyhero Posted January 8, 2019 Share Posted January 8, 2019 I want to set the unicheckbox.fieldlabel's color. What can i do ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 8, 2019 Share Posted January 8, 2019 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; Quote Link to comment Share on other sites More sharing options...
zhyhero Posted January 8, 2019 Author Share Posted January 8, 2019 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 ? Quote Link to comment Share on other sites More sharing options...
GerhardV Posted January 8, 2019 Share Posted January 8, 2019 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; Quote Link to comment Share on other sites More sharing options...
alfr Posted March 24, 2020 Share Posted March 24, 2020 Would be great if you in next version would be able to make sure all form controls had the same generic properties published through the Delphi interface. Today I find it hard to easily design forms as some controls have some properties published but others haven't got them. For example is the FieldLabelFont avaiable in TUniDbNumberEdit and in TUniDbDateTimePicker, but not in TUniDbEdit and TUniDBFormattedNumberEdit? Alignment is not available in TUniDbDateTimePicker and in TUniDbLookupComboBox? (Also that some controls don't have LayoutConfig published that I've as well commented in another thread.) 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.