artem_niko Posted April 24, 2020 Posted April 24, 2020 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? Quote
Sherzod Posted April 24, 2020 Posted April 24, 2020 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 Quote
artem_niko Posted April 24, 2020 Author Posted April 24, 2020 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? Quote
Sherzod Posted April 24, 2020 Posted April 24, 2020 6 minutes ago, Артем said: I need just check if UniTabSheet exist. if UniPageControl1.FindChildControl('Tab1')<>nil then 1 Quote
artem_niko Posted April 24, 2020 Author Posted April 24, 2020 10 minutes ago, Sherzod said: if UniPageControl1.FindChildControl('Tab1')<>nil then It's perfect! Working fine! Thank you! 1 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.