Recent

Author Topic: TPageControl - tabs height  (Read 7185 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1055
TPageControl - tabs height
« on: April 02, 2011, 11:59:49 pm »
Hi,

Is any posibility to change tabs height? For example on GTK there is to much space wasting. I want more compact tabs - smaller font size, smaller height. The only solution is drawing own tabs?

Regards

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TPageControl - tabs height
« Reply #1 on: April 03, 2011, 12:06:48 am »
Here on Qt when I use smaller font (I mean TPageControl.Font.Size) then tabs are smaller automagicly.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Dibo

  • Hero Member
  • *****
  • Posts: 1055
Re: TPageControl - tabs height
« Reply #2 on: April 03, 2011, 12:09:57 am »
Hm, on GTK font size is always this same

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TPageControl - tabs height
« Reply #3 on: April 03, 2011, 12:17:11 am »
I'm using Windows 7 so I don't know if it works the same on all systems, but as a work around, you can put the PageControl on a TPanel and set the TPanel.Font.Size to a smaller or larger font and it will be reflected in the Tabs.  You can also play with the settings of the TPanel border to make seem to disappear.  Not good, but if you really need it, it is one solution.  At least in Windows :)
Lazarus Trunk / fpc 2.6.2 / Win32

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TPageControl - tabs height
« Reply #4 on: April 03, 2011, 12:22:14 am »
I rebuilt to GTK2 for a moment and it seems all font changes are ignored, no matter if TPageControl is on Form or Panel, if you change font directly or if you change ParentFont.  :(
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TPageControl - tabs height
« Reply #5 on: April 03, 2011, 12:28:50 am »
I guess it's different in Windows.  I just tested the TPanel solution and added 2 buttons.  One to make the font larger and one to make it smaller(TPanel font).  The TPageControl.Font.Size and Tab size were increased or decreased as expected.  Not much help though if you aren't working under Windows.
Lazarus Trunk / fpc 2.6.2 / Win32

 

TinyPortal © 2005-2018