[Gambas-user] Add objects to a scrollview
Timothy Marshal-Nichols
timothy.marshal-nichols at ...247...
Fri Sep 8 14:08:02 CEST 2006
> -----Original Message-----
> From: gambas-user-bounces at lists.sourceforge.net
> [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of rolf
> Sent: Friday, 08 September 2006 12:44
> To: mailing list for gambas users
> Subject: [Gambas-user] Add objects to a scrollview
>
>
> 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"
Thanks
8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>
More information about the User
mailing list