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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...