Jump to content

Recommended Posts

  • 8 months later...
Posted

Solution:

 

 

Hide:

UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.hide();');

Show:

UniSession.AddJS(UniPageControl1.JSName + '.tabPanel.show();');

Sincerely

  • 1 month later...
Posted

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;
 

  • 1 year later...
Posted

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?
Posted

 

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...