[Gambas-user] Objects on a Form III

Benoît Minisini gambas at ...1...
Fri Jan 31 23:33:38 CET 2003


Le Vendredi 31 Janvier 2003 21:12, Charlie a écrit :
> >>Salut Benoit and all gambas - mailers,
> >>
> >>I still looking for a possibiliety to access to the objects on a Form.
> >>In the IDE it is made by scanning the *.form file, but is it possible to
> >>do it
> >>in a program ?
> >>Like Form.objects or something like that.
> >>I need to access to the form.object.proberties.
> >>
> >>amicalement
> >>
> >>charlie
> >
> >Salut
> >It's really simple !!!
> >
> >Form is a container and a control
> >so look at the container properti in the componant explorer
> >
> >''//
> >Dim hControl as Control
> >Dim Counter as Integer
> >
> >For Each hControl in Me.Children
> >   Counter = Counter + 1
> >   Print hControle.With
> >Next
> >Message.Info ("There is " & str(Counter) & "Control in this Form")
> >
> >END
> >
> >Fabien
>
> Salut ,
>
> this works well for all Controls on 'the first flor'  only.
> I got mor informations on
>
> DIM hControl AS Object
>
> But wow can I find out the Containers and theire Controls ?
> How can I aske for the kids ?
>
> I turned Objects,Containers and Controls!
>
> Is theire a roadmap ?
>
> Charlie
>
>

Hi Charlie,

you can find controls by recursively examining containers. Maybe I will create 
a Form.Controls property to get all controls in one shot.

Regards,

-- 
Benoît Minisini
mailto:gambas at ...1...




More information about the User mailing list