codeb Posted January 5, 2014 Share Posted January 5, 2014 How to hite tabs from UniPageControl? I try some samples from this forum but nothnig.... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 5, 2014 Share 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 Link to comment Share on other sites More sharing options...
codeb Posted January 5, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 5, 2014 Share 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 Link to comment Share on other sites More sharing options...
codeb Posted January 5, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 5, 2014 Share 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 Link to comment Share on other sites More sharing options...
codeb Posted January 5, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 5, 2014 Share Posted January 5, 2014 You are welcome! Quote Link to comment Share on other sites More sharing options...
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.