Jump to content

Attach a control to GUI?


sandman
 Share

Recommended Posts

I have a function that will create a label, and one of the parameters is the handle to the GUI. How can I make sure that the created control is attached to the GUI specified? I haven't been able to find anything helpful in the helpfile, and the darn 3 word search minimum really gets at you sometimes.

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

  • Moderators

If it's an external gui, then look up AnyGUI.au3 ... if it's your own GUI... you have me confused!! ... but you could always try ControlCommand + IsVisible or IsEnabled I suppose.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

It's for my own GUI... but what I mean is like this: Imagine your script is running two seperate GUIs. I know usually to attach a control to a GUI, you just put it right under the GUICreate()... but how do you specify which GUI to put a control in? There must be something out there, otherwise in one script or another someone's buttons they made in a loop run after both GUI's opened would end up in the wrong one.

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

  • Moderators

It's for my own GUI... but what I mean is like this: Imagine your script is running two seperate GUIs. I know usually to attach a control to a GUI, you just put it right under the GUICreate()... but how do you specify which GUI to put a control in? There must be something out there, otherwise in one script or another someone's buttons they made in a loop run after both GUI's opened would end up in the wrong one.

Each GUI created returns a handle, take a look at the AnyGUI I've mentioned, and you'll find your answers.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...