Volk65 Posted December 21, 2017 Share Posted December 21, 2017 Hi I use FieldSet. Add a Checkbox which FieldLabel:=", and I see this picture: But I can't remove the colon from Checkbox, it has no properties FieldLabelSeparator. How to overcome this problem? (This RunTime created form) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2017 Share Posted December 22, 2017 Hi, Sorry, I couldn't reproduce this issue, can you make a simple testcase for this ?! Best regards, Quote Link to comment Share on other sites More sharing options...
Volk65 Posted December 22, 2017 Author Share Posted December 22, 2017 Hi I not correctly explained. Correctly so: When FieldLabel is empty, then no colon, but the alignment of the CheckBoxes are ugly. Leveling to was beautiful, I put the FieldLabel one space. Then, the alignment control is correct, but shows the colon. Test3.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2017 Share Posted December 22, 2017 Ok, thanks for the testcase, I will check Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 22, 2017 Share Posted December 22, 2017 Try this: procedure TMainForm.CreateCheckbox(aPrompt: String; Val: Boolean); var EditControl: TUniCheckBox; begin EditControl:=TUniCheckBox.Create(panMain); with TUniCheckBox(EditControl) do begin Parent:=panMain; if cbSpace.Checked then begin FieldLabel:=' '; JSInterface.JSConfig('labelSeparator', ['']); // <---------------- end else FieldLabel:=''; Caption:=aPrompt; FieldLabelWidth:=200; Checked:=Val; end; end; Quote Link to comment Share on other sites More sharing options...
Volk65 Posted December 22, 2017 Author Share Posted December 22, 2017 Super. This is what I need. Thank you for your promptness. 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.