[Gambas-user] Add objects to a scrollview
Fabien Bodard
sirfabien at ...626...
Fri Sep 8 14:18:18 CEST 2006
Le Vendredi 8 Septembre 2006 14:08, Timothy Marshal-Nichols a écrit :
> > -----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"
>
>
A little tips more :)
you can manage the content of the scrollview by too way :
First use a panel that content the widgets and then put it in the scroll view
By this way it's the panel who arrange his content and the scrollview just
allow to see the hiden part.
the other way concern the arrange property of the scrollview ... so you can
put the control directly in the scrollview and set the arrange property of
the scroll view to vertical, horizontal,column, row
Fabien
>
> Thanks
>
> 8-{)} Timothy Marshal-Nichols
> <mailto: timothy.marshal-nichols at ...247...>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list