Frederick Posted November 18, 2020 Posted November 18, 2020 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) Quote
Hayri ASLAN Posted November 18, 2020 Posted November 18, 2020 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; Quote
Frederick Posted November 19, 2020 Author Posted November 19, 2020 Thank you for the codes. They work fine. Quote
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.