arilotta Posted August 24, 2018 Share Posted August 24, 2018 Hi all, changing by code the PageIndex of a TUniTbaShet does not change its position, like at the design time. I think there is the need to call some JS to have the TUniPageControl refreshed. Could someone help me please ? I found a thread to enable dragging the tabs at runtime, but I only need to change tab positions by code. Thanks Andrea Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 24, 2018 Share Posted August 24, 2018 Hi Can you try this? with UniPageControl1, JSInterface do begin JSCall('tabPanel.remove', [UniTabSheet1.JSControl,False]); JSCall('tabPanel.insert', [NewIndex,UniTabSheet1.JSControl]); end; Quote Link to comment Share on other sites More sharing options...
arilotta Posted August 24, 2018 Author Share Posted August 24, 2018 Wow, thank you, it works perfectly ! Quote Link to comment Share on other sites More sharing options...
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.