Jump to content

Recommended Posts

Posted

I have a TUniStatusbar with 7 panels. One of the panels is supposed to be hidden from view depending on the user's status. Is it possible to hide any panel without deleting it?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1539)
 

Posted
9 hours ago, Frederick said:

I have a TUniStatusbar with 7 panels. One of the panels is supposed to be hidden from view depending on the user's status. Is it possible to hide any panel without deleting it?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1539)
 

Hello

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  with UniStatusBar1, JSInterface do
  begin
    JSCall('items.get(2).hide', []);
  end;
end;

procedure TMainForm.UniButton2Click(Sender: TObject);
begin
  with UniStatusBar1, JSInterface do
  begin
    JSCall('items.get(2).show', []);
  end;
end;

 

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...