codeb Posted January 5, 2014 Posted January 5, 2014 How to hite tabs from UniPageControl? I try some samples from this forum but nothnig.... Quote
Sherzod Posted January 5, 2014 Posted January 5, 2014 Solution: Hide: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.hide();'); Show: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.show();'); http://forums.unigui.com/index.php?/topic/2939-how-to-hide-header/&do=findComment&comment=17616 or hide / show by index, example index=2 Hide: UniSession.AddJS(UniPageControl1.JSName + '.items.getAt(0).items.getAt(2).tab.hide();'); Show: UniSession.AddJS(UniPageControl1.JSName + '.items.getAt(0).items.getAt(2).tab.show();'); Quote
codeb Posted January 5, 2014 Author Posted January 5, 2014 Thanks on answer, but Where to put this line... I put it on UniPageControl ->UniEvents -> afterCreate then I get blank screen, put on UniEvents->beforeInit (same result)... ExtEvents->afterRender (same result) ExtEvents->beforeRender (same result).... Where to put it?????? Quote
Sherzod Posted January 5, 2014 Posted January 5, 2014 in runtime: uses ... UniGUIApplication ... procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS(UniPageControl1.JSName + '.items.getAt(0).items.getAt(2).tab.hide();'); end; Or runtime or desingtime: UniTabSheet1.TabVisible := False; UniTabSheet2.TabVisible := False; .... Quote
codeb Posted January 5, 2014 Author Posted January 5, 2014 Now is ok... but I need to hide only tab not all page to get componenst like TNotebook - Delphi VCL... Quote
Sherzod Posted January 5, 2014 Posted January 5, 2014 Now is ok... but I need to hide only tab not all page to get componenst like TNotebook - Delphi VCL... Or runtime or desingtime: UniTabSheet1.TabVisible := False; UniTabSheet2.TabVisible := False; does not help? Quote
codeb Posted January 5, 2014 Author Posted January 5, 2014 Big thanks!!!!! I must to make visible one Tab in other way I have new problem with tab header... but now works 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.