Jump to content
Sign in to follow this  

Get size of a GUI control?

Recommended Posts


(This is for an AIPad bugfix)

I'm trying to make it in my script so that when this new control is created, it will be the same size as the original control. The original control is set to automatically dock, so depending on the window size it could be huge or tiny. I haven't been able to find anything yet... does anyone know how?


(something like this:)

$newcontrol = GUICtrlCreateEdit("", GUICtrlGetWidth($oldcontrol), GUICtrlGetHeight($oldcontrol))
Edited by sandman

[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]

Share this post

Link to post
Share on other sites

Look at ControlGetPos().

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.

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.