[Gambas-user] Toolpanel Children Resize Problem

Alex Schaller gambas at ...1077...
Tue Aug 23 20:25:49 CEST 2005


Hello!

I am trying to automatically resize controls inside a Toolpanel and ran into 
the following problem. Any control that is not inside Toolbar-0 does not 
automatically resize.
Here is some sample code that I used.

PUBLIC SUB Form_Resize()

  DIM cControl AS Control

  Toolpanel1.Width = ME.ClientWidth
  Toolpanel1.Height = ME.ClientHeight

  FOR EACH cControl IN Toolpanel1.Children
     cControl.Width = Toolpanel1.ClientWidth
     cControl.Height = Toolpanel1.ClientHeight
  NEXT

END

Thanks!

Alex




More information about the User mailing list