Iterate widgets in frame

hkeskin

New Member
Hi,

I want to change BGCOLOR property for all Fill-in objects in frame. I want to access to them using loop. How can I do it?
Thanks in advance.
 
You can do this by doing a so-called widget tree walk on the frame.

Something like ( coded in Firefox IDE - not syntax checked ):
Code:
 ASSIGN hWidget = hFrame:FIRST-CHILD
            hWidget = hWidget:NEXT-SIBLING. /* There is a widget group that we don't want */

DO WHILE VALID-HANDLE ( hWidget ):
    /* Your Stuff */
    ASSIGN hWidget = hWidget:NEXT-SIBLING.
END.

Heavy Regards, RealHeavyDude.
 
Back
Top