Stefano Palmeri wrote:
> Il sabato 4 ottobre 2008 15:29:01 Ron ha scritto:
>> Hi,
>>
>> Third time I try to get this message on the list, so hopefully it gets
>> through now..
>>
>> Say I have a Form with alot of frames on it with buttons etc. in them.
>>
>> I want to enable only 2 frames and the buttons inside them at some
>> point. (disable most of the gui)
>> When I first disable all, and then try to enable just the 2 frames, it
>> doesn't work, they all stay disabled.
>>
>> Have I shoot myself in the foot, by using ME.Children, or should it work?
>>
>>    DIM oObject as Object
>>
>>    FOR EACH oObject IN ME.Children
>>      oObject.Enabled = FALSE
>>    NEXT
> 
> Here, you have to enable the frameStream control, before its
> children. 
>       
>        frameStream.enabled =TRUE
> 
>>    FOR EACH oObject IN frameStream.Children
>>      oObject.Enabled = TRUE
>>    NEXT
>>    FOR EACH oObject IN frameDevice.Children
>>      oObject.Enabled = TRUE
>>    NEXT
>>
>> Gambas 2.9 using gb.qt
>>
>> Regards,
>> Ron_2nd.
> 
> Bye,
> 
> Stefano
>

Stefano and Benoit thanks for the pointer, didn't thought about the need 
to enable the parents first.
Works ok now.

Regards,
Ron_2nd

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to