Jump to content

UniPageControl Tabsheet Order


dkeene

Recommended Posts

Hello

I have created a UniPageControl with Tabsheets, for example, A, B, C, D, E. 

I try to change the tab order, for example, to B, A, C, D, E, by assigning TabSheetB.PageIndex:=0 and TabSheetA.PageIndex:=1.

This does not seem to work, and debugging shows that the PageIndex will only change in the design mode or loading mode.

Does anyone know the way to change the order of a tabsheet in a Pagecontrol during runtime???
Thank you

Doug

Link to comment
Share on other sites

32 minutes ago, dkeene said:

Does anyone know the way to change the order of a tabsheet in a Pagecontrol during runtime???

Hello,

Can you try this approach?

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniPageControl1.JSInterface.JSCall('tabPanel.move', [0, 1]);
end;

 

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