Frederick Posted November 4, 2019 Share Posted November 4, 2019 Is it possible for the group box's caption to be shown normally (and not blurred) even when it is disabled? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1513) Link to comment Share on other sites More sharing options...
Sherzod Posted November 4, 2019 Share Posted November 4, 2019 2 hours ago, Frederick said: Is it possible for the group box's caption to be shown normally (and not blurred) even when it is disabled? You can try this approach I think: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniGroupBox1.JSInterface.JSAssign('legend.maskOnDisable', [False]); end; Link to comment Share on other sites More sharing options...
Frederick Posted November 4, 2019 Author Share Posted November 4, 2019 Thanks. This works nicely. Link to comment Share on other sites More sharing options...
Frederick Posted November 4, 2019 Author Share Posted November 4, 2019 Hi Sherzod, Just a small thing. If the TUniGroupBox does not have a caption, calling the above code will throw an Ajax error. Is it possible for the code to recognize that there is no caption and act accordingly instead of displaying an error? Link to comment Share on other sites More sharing options...
Sherzod Posted November 5, 2019 Share Posted November 5, 2019 2 hours ago, Frederick said: Just a small thing. If the TUniGroupBox does not have a caption, calling the above code will throw an Ajax error. Is it possible for the code to recognize that there is no caption and act accordingly instead of displaying an error? Hi, Try this: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniGroupBox1 do if (Caption<>'') then JSInterface.JSAssign('legend.maskOnDisable', [False]); end; Link to comment Share on other sites More sharing options...
Frederick Posted November 5, 2019 Author Share Posted November 5, 2019 Ok, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now