vagner.moura Posted September 8, 2016 Share Posted September 8, 2016 I'm using " Accordion Layout" similar to Demo ( LayoutManagementAccordionLayout ) .I would like to switch panels via Code... as with TUniPageControl with " ActivePage ".How to make? UniPanelA.ActivePanel ??? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 9, 2016 Share Posted September 9, 2016 Hi, For now can you try this?!: uses ... uniGUIJSInterface; procedure TMainForm.UniButton1Click(Sender: TObject); begin IUniJSInterface(UniPanel1).JSCall('collapse'); //IUniJSInterface(UniPanel1).JSCall('expand'); end; Best regards. Quote Link to comment Share on other sites More sharing options...
vagner.moura Posted September 9, 2016 Author Share Posted September 9, 2016 Hi, For now can you try this?!: uses ... uniGUIJSInterface; procedure TMainForm.UniButton1Click(Sender: TObject); begin IUniJSInterface(UniPanel1).JSCall('collapse'); //IUniJSInterface(UniPanel1).JSCall('expand'); end; Best regards. Thank you! It worked!!! 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.