Jump to content

Check exist UniTabSheet


artem_niko

Recommended Posts

Hello!

I'm creating some UniTanSheet's. But, before create, I must check, on by name, if UniTabSheet exist and if UniTabSheet existing that don't create UniTabSheet.

I'm don't using UniTreeMenu.

Ts.Name:='Tab1';
if not Assigned(Ts) then
begin
Ts:=TUniTabSheet.Create(UniPageControl1);
Ts.PageControl:=UniPageControl1;
Ts.Caption:='1';
Ts.Name:='Tab1';
UniPageControl1.ActivePage:=Ts;
end;

How create this check?

Link to comment
Share on other sites

2 hours ago, Артем said:

I'm creating some UniTanSheet's. But, before create, I must check, on by name, if UniTabSheet exist and if UniTabSheet existing that don't create UniTabSheet.

Hello,

Can you use like in this demo example?

\FMSoft\Framework\uniGUI\Demos\Desktop\AllFeaturesDemo

 

Link to comment
Share on other sites

Just now, Sherzod said:

Hello,

Can you use like in this demo example?


\FMSoft\Framework\uniGUI\Demos\Desktop\AllFeaturesDemo

 

This is demo not help me.

I need just check if UniTabSheet exist.

I'm using Ts.Name:='Tab1';

Is it possible check exist this tab?

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