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) Quote 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; Quote 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. Quote 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? Quote 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; Quote Link to comment Share on other sites More sharing options...
Frederick Posted November 5, 2019 Author Share Posted November 5, 2019 Ok, thanks. 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.