Alexsander Rosa wrote 7 lines
The "ChildSizing" property allow several nice things with TGroupBox [1],
congratulations to the team. Under GTK2, the TPanel still have some
annoying bugs. If we had in TGroupBox a property
"HideContourLineWhenCaptionIsEmpty" or even "HideContourLine", the
TGroupBox could replace TPanel in the "poor man's layout manager" role.
[1]
http://wiki.lazarus.freepascal.org/Autosize_/_LayoutNo, we cannot do that since there's no property in GtkFrame to do such thing. Under gtk2 TPanel is scrolling control because GtkFrame is wrong class (wrong gtk design IMO).There should be pure GtkFrame (like it is eg under qt) and GtkGroupBox (which is current GtkFrame).
Only way to fix this is to write an gtk2lcl class which should be like qt's QFrame , and of course use that class instead of scolling controls.
zeljko