[Gambas-user] Add objects to a scrollview

rolf rolf.frogs at ...221...
Sat Sep 9 10:31:59 CEST 2006


Helle Timothy

> > Hi everybody out there,
> >
> > still fighting with objects I would like to ask if someone can
> > give me a hint, how to add objects like comboxes, textlabels...
> > to a scrollview  dynamically at runtime. BTW the scrollview itself
> > is element of a tabstrip. 
> >
> > Many thanks for your suggestions
> > Rolf
>
> Take a look at the example at
> http://www.linuxbasic.net/index.php?topic=117.0
>
> This example uses a Form as the parent of the dynamic controls. However you
> can use any container - even throw caution to the wind and use a
> ScrollView. You would change the line:
>
> 	b = NEW Button(ME) AS "KeyButton"
>
> to your ScrollViewName:
>
> 	b = NEW Button(ScrollViewName) AS "KeyButton"

This short example helped me to solve my problem. Many thanks

Rolf




More information about the User mailing list