Recent

Author Topic: help! How to adjust the tabwidth and tabheight of TPageControl?  (Read 10879 times)

Neo2010

  • New Member
  • *
  • Posts: 13
help! How to adjust the tabwidth and tabheight of TPageControl?
« on: January 31, 2010, 05:18:52 am »
hi, everyone!

In delphi, I can easily adjust the tabwidth and tabheight properties of TPageControl both on object inspector or through codes, but in Laz, these two properties have not been implemented yet.  

So does anybody have an idea how to adjust them in Laz. My project is heavily depend on TPageControl component, so its appearance is very important to me.

Many thanks and best regards!
« Last Edit: January 31, 2010, 06:08:45 am by Neo2010 »
keep it simple!

davesimplewear

  • Sr. Member
  • ****
  • Posts: 319
    • Davids Freeware
Re: help! How to adjust the tabwidth and tabheight of TPageControl?
« Reply #1 on: January 31, 2010, 10:19:35 pm »
It not only doesn't work on TpageControl but on TTabSet and TNoteBook, I tried to manually and progammaticaaly set the widyth on TTabset but it dowsn't work, also the tabstyle doen't work.

Regards
David
All things considered insanity seems the best option

Neo2010

  • New Member
  • *
  • Posts: 13
Re: help! How to adjust the tabwidth and tabheight of TPageControl?
« Reply #2 on: February 01, 2010, 02:46:55 pm »
yeah, David, they have the same problem.

AFAIK, these components are all too ugly, eigher in Laz or in Delphi(TPageControl  in RaizeComponents is much more pretty).

So, if you have to use these components(Unfortunatley, sometimes this is not avoidable), then the appearence of the whole ui will be in a totally mess. oops!

Does anybody has any idea how to improve them?
keep it simple!

paweld

  • Hero Member
  • *****
  • Posts: 1214
Re: help! How to adjust the tabwidth and tabheight of TPageControl?
« Reply #3 on: February 02, 2010, 01:34:44 am »
hi

GradTabControl has property TabHeight:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/gradcontrols/

Best regards
paweld
Best regards / Pozdrawiam
paweld

Neo2010

  • New Member
  • *
  • Posts: 13
Re: help! How to adjust the tabwidth and tabheight of TPageControl?
« Reply #4 on: February 02, 2010, 09:57:09 am »
hi

GradTabControl has property TabHeight:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/gradcontrols/

Best regards
paweld
I've tested GradTabControl, looks like it is still under development, and as the author said, it could be very unstable.

so, maybe the only way out here is to write it from scratch, IMO. That's a lot of work!
keep it simple!

 

TinyPortal © 2005-2018