[Gambas-user] control groups

Stefano Palmeri rospolosco at ...152...
Mon Dec 4 09:14:22 CET 2006


Alle 08:12, lunedì 4 dicembre 2006, Eldon Eller ha scritto:
> Yes, I know that control groups don't work with FOR EACH. What I am 
> looking for is a way to do what FOR EACH would do if it did work. In 
> short, to look at each control in the control group and determine its 
> properties so I can take some action based on those properties. For 
> example, if the control is a button and the button text is "foo" then 
> change the foreground to red. Please forgive my inability to 
> communicate, but please don't give up on me. Tnx, EEE
> 
> Christopher Brian Jack wrote:
> > On Sun, 3 Dec 2006, Eldon Eller wrote:
> >
> >   
> >> Sorry, I did not state my problem clearly. What I want to do is
> >> something like this (which does not work):
> >> FOR EACH button IN dates
> >>     if button.SomeProperty = Something then do SomeSub
> >> NEXT
> >>     
> >
> > Control groups don't work with FOR EACH.

See the code of attached example. Change "combobox" with "button".
I'm sure there's a more elegant way to do what you're asking for, but
this a working starting point.

Regards,

Stefano Palmeri

> >
> > .=================================================.
> > |  Christopher BRIAN Jack aka "Gau of the Veldt"  |
> > +================================================='
> > | oevna at ...1543...
> > `=================================================-
> > Hi Spambots, my email address is sputnik at ...1334...
> > Hi Humans, my email address uses rot13 cipher
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >   
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrayobjects-0.0.1.tar.gz
Type: application/x-tgz
Size: 2455 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20061204/d0164b5d/attachment.bin>


More information about the User mailing list