kkelchev Posted February 26, 2022 Share Posted February 26, 2022 Hi, What is right way to add new TabSheet in PageControl at runtime. I'm UniGUI-pro license owner and I found easy solution. Just move definition of TUniCustomPageControl.InsertPage(APage: TUniCustomTabSheet) from private to public class section and it works. But i was wander is there better solution without changing uniPageControl.pas unit. Or if my solution is framework safety, team could you move definition like that ? Thanks Kamen Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 26, 2022 Share Posted February 26, 2022 43 minutes ago, kkelchev said: What is right way to add new TabSheet in PageControl at runtime. Hello, with TUniTabSheet.Create(Self) do begin Caption := 'PageCaption'; PageControl := TUniPageControl(UniPageControl1); end; Please see the related demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Dynamic Quote Link to comment Share on other sites More sharing options...
kkelchev Posted February 27, 2022 Author Share Posted February 27, 2022 Thanks thas is perfect 1 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.