stone feng Posted March 13, 2013 Share Posted March 13, 2013 Hi, Farshad .TabVisible := False, How to hide header ? Thank you 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, 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. 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? 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 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 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; 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? 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? 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. 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. 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now