Jump to content

How To Force The TUniGroupBox's Header To Show Normally Even When It Is Disabled?


Frederick

Recommended Posts

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

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? 

Ajax Error If Groupbox No Caption.png

Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...