NelsonFS Posted June 12, 2014 Posted June 12, 2014 This simple example show how to create a application that use a TUniPageControl to show forms inside TabSheet. Based on examples, MegaDemo and Marlon code. Thank you. Version UniGui: 0.95.0.1046 Delphi: XE5 FormsTDI_Tabs.zip 5
uniguibbs Posted June 16, 2014 Posted June 16, 2014 good +1. but, why create new panel ? //if not found, then create it... TabSheetNew := TUniTabSheet.Create(NavPage); TabSheetNew.PageControl := NavPage; TabSheetNew.Caption := Titulo; TabSheetNew.Name := Name; TabSheetNew.Closable := True; TabSheetNew.OnClose := CheckTab; // PanelTabSheetNew := TUniPanel.Create(TabSheetNew); // PanelTabSheetNew.Align := alClient; // PanelTabSheetNew.Parent := TabSheetNew; // FCurrentFrameTab := TUniFrameClass(FindClass(Name)).Create(Self); // FCurrentFrameTab.Parent := PanelTabSheetNew; // FCurrentFrameTab.Align := alClient; FCurrentFrameTab := TUniFrameClass(FindClass(Name)).Create(Self); FCurrentFrameTab.Parent := TabSheetNew; FCurrentFrameTab.Align := alClient;
NelsonFS Posted July 2, 2014 Author Posted July 2, 2014 This panel is usefull case you need add a accordion panel left side, or reorganize frame and form, example, hide/show all frame. You wont need to put all frame components in other place.. was just thinking in future.. just this.
wilton_educasoft Posted May 26, 2015 Posted May 26, 2015 I tried to use his example, but did not work when using a legacy tuniframe -> TfrmBase = class (TUniFrame) TfrmEscola = class (TfrmBase) - here and an inherited form of TFrmBase InsertFrameTab ('TfrmEscola', 'school'); the access violation error that line FCurrentFrameTab: = TUniFrameClass (FindClass (Name)) Create (Self);. initialization RegisterClasses ([ TfrmBase, TfrmEscola ]); RegisterAppFormClass (TFrmPrincipal); ------------------------------------------------------------------------------------- in forms of TUniFrame type usually works
leons Posted February 24, 2017 Posted February 24, 2017 Great! I had a problem with this, earlier this week. Thanks to you I have solved it.
Sherzod Posted January 28, 2021 Posted January 28, 2021 http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/&do=findComment&comment=32086
Iroshk Luiz Posted December 2, 2022 Posted December 2, 2022 Tem como mandar para mim FormsTDI_Tabs.zip, não estou conseguindo baixar
Sherzod Posted December 2, 2022 Posted December 2, 2022 52 minutes ago, Iroshk Luiz said: Tem como mandar para mim FormsTDI_Tabs.zip, não estou conseguindo baixar Wich edition and build of uniGUI are you using?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now