Jump to content

creating controls in a loop?


UTA
 Share

Recommended Posts

Hi everybody,

I was wondering if it is possible to creat controls in a loop (dynamically) and afterwards to address them dynamically.

Imagine I want to create a (dynamic) number of icons next to each other. Later (in the sourcecode) I would like to address them dynamically the same way.

Something like the following (but that doesn't work):

Creation...

For $i=1 to $NumberIcons
    $Icon & $i = GUICtrlCreateIcon($i & ".ico",0, $i-1*$IconSize+2, 2, $IconSize, $IconSize)
Next

Address...

For $i=1 to $NumberIcons
    GUICtrlSetImage($Icon & $i, $i & ".ico")
Next

Is that possible somehow with autoit?

UTA

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...