Arvin Feng Posted March 13, 2013 Posted March 13, 2013 Hi, Farshad .TabVisible := False, How to hide header ? Thank you Quote
Sherzod Posted December 5, 2013 Posted December 5, 2013 I need too. please suggest. Sorry, What a component is shown in the image, can clarify the issue? Quote
suangsan Posted December 6, 2013 Posted December 6, 2013 Sorry, What a component is shown in the image, can clarify the issue? TUniPageControl Quote
Sherzod Posted December 6, 2013 Posted December 6, 2013 Solution: Hide: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.hide();'); Show: UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.show();'); Sincerely Quote
NelsonFS Posted January 23, 2014 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
WagnerAlexandre Posted February 1, 2015 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
WagnerAlexandre Posted February 3, 2015 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
Sherzod Posted February 4, 2015 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
WagnerAlexandre Posted February 5, 2015 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
Sherzod Posted February 6, 2015 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
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.