SayeyeZohor Posted October 2, 2019 Share Posted October 2, 2019 hi how disable expand unipanel? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 2, 2019 Share Posted October 2, 2019 1 minute ago, SayeyeZohor said: how disable expand unipanel? Hi, Sorry, what do you mean? Quote Link to comment Share on other sites More sharing options...
SayeyeZohor Posted October 2, 2019 Author Share Posted October 2, 2019 I Want disable the ability to expand the unipanel and always be collapsed Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 2, 2019 Share Posted October 2, 2019 1 hour ago, SayeyeZohor said: I Want disable the ability to expand the unipanel and always be collapsed Ok... Try this approach. 1. UniPanel1.Collapsible/Collapsed = True 2. UniPanel1.ClientEvents.ExtEvents -> function beforeexpand: function beforeexpand(p, animate, eOpts) { return this.allowExpand; } 3. MainForm.OnCreate: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniPanel1.JSInterface.JSAssign('allowExpand', [False]); end; 4. If you want to expand: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniPanel1.JSInterface.JSAssign('allowExpand', [True]); end; 1 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.