dkeene Posted June 20, 2020 Posted June 20, 2020 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 Quote
Sherzod Posted June 20, 2020 Posted June 20, 2020 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; Quote
dkeene Posted June 20, 2020 Author Posted June 20, 2020 Thank you, Sherzod, this worked fine. Is the control supposed to work by setting the PageIndex? 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.