Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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