Jump to content

How to add page(TUniTabSheet) in TUniPageControl at Runtime.


kkelchev

Recommended Posts

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

 

Link to comment
Share on other sites

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

 

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