erich.wanker Posted July 4, 2013 Posted July 4, 2013 Hello, is there a way to collapse the unipanel with code? or is there a way to start in "closed mode" .. like Mainmodle.oncreate -> unipanel.CollapseState:= closed; or something like: if unibutton1.clicked then unipanel.CollapseState:= closed; And the arrows of the unipanel (align:altop) are in the wrong direction in my view .. thanks for help Erich Quote
Sherzod Posted July 4, 2013 Posted July 4, 2013 or is there a way to start in "closed mode" .. like Mainmodle.oncreate -> unipanel.CollapseState:= closed; Hi Erich Try procedure TMainForm.UniFormShow(Sender: TObject); begin if UniPanel1.Collapsible then UniSession.AddJS(UniPanel1.JSName+'.collapse();'); end; Quote
Sherzod Posted July 4, 2013 Posted July 4, 2013 or something like: if unibutton1.clicked then unipanel.CollapseState:= closed; Collapse: if UniPanel1.Collapsible then UniSession.AddJS(UniPanel1.JSName+'.collapse();'); Expand: if UniPanel1.Collapsible then UniSession.AddJS(UniPanel1.JSName+'.expand();'); 1 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.