Jump to content

unipanel and collapse


erich.wanker

Recommended Posts

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

Link to comment
Share on other sites

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;
Link to comment
Share on other sites

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();');
  • Upvote 1
Link to comment
Share on other sites

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