stone feng Posted March 13, 2013 Share Posted March 13, 2013 Hi, Farshad .TabVisible := False, How to hide header ? Thank you Quote Link to comment Share on other sites More sharing options...
huangrenping Posted December 4, 2013 Share Posted December 4, 2013 I also got this trouble, Quote Link to comment Share on other sites More sharing options...
suangsan Posted December 5, 2013 Share Posted December 5, 2013 I need too. please suggest. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2013 Share Posted December 5, 2013 I need too. please suggest. Sorry, What a component is shown in the image, can clarify the issue? Quote Link to comment Share on other sites More sharing options...
suangsan Posted December 6, 2013 Share Posted December 6, 2013 Sorry, What a component is shown in the image, can clarify the issue? TUniPageControl Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 6, 2013 Share Posted December 6, 2013 Solution: Hide: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.hide();'); Show: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.show();'); Sincerely Quote Link to comment Share on other sites More sharing options...
NelsonFS Posted January 23, 2014 Share Posted January 23, 2014 other solution.. procedure HideUniPageControlHeader(PC: TUniPageControl);begin //hide UniPageControl header //add in uses: uniGUIApplication, uniGUIBaseClasses, uniPageControl UniSession.AddJS(Format('%s.items.getAt(0).tabBar.hide();', [PC.JSName]));end; Quote Link to comment Share on other sites More sharing options...
WagnerAlexandre Posted February 1, 2015 Share Posted February 1, 2015 Nelz, but how to solve in case of a DBGrid in alClient mode? Because it does not fill the entire screen, gets the space of the tabs that were hidden. You have come across this? Quote Link to comment Share on other sites More sharing options...
WagnerAlexandre Posted February 3, 2015 Share Posted February 3, 2015 other solution.. procedure HideUniPageControlHeader(PC: TUniPageControl); begin //hide UniPageControl header //add in uses: uniGUIApplication, uniGUIBaseClasses, uniPageControl UniSession.AddJS(Format('%s.items.getAt(0).tabBar.hide();', [PC.JSName])); end; Nelz, but how to solve in case of a DBGrid in alClient mode? Because it does not fill the entire screen, gets the space of the tabs that were hidden. You have come across this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 4, 2015 Share Posted February 4, 2015 Nelz, but how to solve in case of a DBGrid in alClient mode? Because it does not fill the entire screen, gets the space of the tabs that were hidden. You have come across this? Hi, Can you clarify your "question" ?! Maybe I can help .. Best regards. Quote Link to comment Share on other sites More sharing options...
WagnerAlexandre Posted February 5, 2015 Share Posted February 5, 2015 Hi, Can you clarify your "question" ?! Maybe I can help .. Best regards. Hi, Delphi Developer, alClient have a grid on a page, the PageControl, but when I put the code that our NeilZ friend posted above, it does the problem of the image attached, the Grid can not perform the autoresize when PageControl hide the tabs. If you can help me I appreciate it. Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 6, 2015 Share Posted February 6, 2015 Hi, Try: For example, we have: Solution: Add resize function: UniTabSheet1 -> ClientEvents -> ExtEvents ... function resize(sender, width, height, oldWidth, oldHeight, eOpts) { MainForm.UniDBGrid1.setHeight(MainForm.UniPageControl1.height - MainForm.UniPageControl1.tabPanel.tabBar.getHeight()); } Best regards. 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.