[Gambas-user] Objects on a Form III

Charlie karl.reinl at ...9...
Sat Feb 1 00:13:44 CET 2003


Benoît Minisini schrieb:

>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,
>
>Had problems, 1st element was a Button so an Error raised.
>

Charlie






More information about the User mailing list