[Gambas-user] Resizing controls inside a window

T Lee Davidson t.lee.davidson at gmail.com
Mon Dec 21 17:10:30 CET 2020


On 12/21/20 7:03 AM, David Silverwood via User wrote:
> Hi
> 
> I am trying to resize a label (horizontally) and databrowser (horizontally & vertically) in a gambas window. I'm having a torrid 
> time at getting it right though as the form resizes but the controls remain the same size. Been trying to search in google/duck 
> duck go but no luck. Any pointers in the right direction, please.
> 
> David

You need to enable the Expand property on the controls and set the parent control to arrange its contents.

 From the Wiki:
Control.Expand (gb.qt4)

Property Expand As Boolean


Returns or sets if a control will expand if included in a container that arranges its contents.


-- 
Lee


More information about the User mailing list