[Lazarus] Too much space between TPageControl and its tabs

Luca Olivetti luca at wetron.es
Thu Oct 29 09:08:02 CET 2015


Hello,

I have to show different things at different times in the same position.
Instead of putting everything in the same spot of the form and setting 
Visible only the item I want to show (which makes designing difficult), 
I'm using a TPageControl with ShowTabs=False.
The problem is that, at least on windows, there are 4 pixels of border 
between the tab and the pagecontrol (on Linux it's just 2, but the 
border is still there).
I couldn't find a property to avoid it, and looking how it is drawn, it 
seems it is deferred to windows, so there is no way to avoid this border.
Am I wrong?
Is there an alternative component that I could use?
For the time being, I use a panel and create the different controls at 
runtime, but this is possible only in simple cases, not for complex 
designs (well, of course it's possible but it's something I'd prefer to 
do visually).

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007




More information about the Lazarus mailing list