Jump to content

How to hide header


stone feng

Recommended Posts

  • 8 months later...
  • 1 month later...

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

  • 1 year later...

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

 

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

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.

 

IMAGEM_DESIGN.jpg

 

 

IMAGEM_ERROR.jpg

Link to comment
Share on other sites

Hi,

 

Try:

 

For example, we have:

post-906-0-77523800-1423220159_thumb.png

 

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...