Jump to content
Sign in to follow this  
KenNichols

Does GUICtrlGetPos or GUICtrlSetSize exist?

Recommended Posts

KenNichols

Is there a function for GUICtrlGetPos or GUICtrlSetSize?

I need to get the position of a label and I need to change it's size with out recreating it. Can this be done?


[topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner!

Share this post


Link to post
Share on other sites
Valuater

Well close...

ControlGetPos()

ControlMove()

See help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
ProgAndy

To set the pos, there is als the function GUICtrlSetPos :D


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites
BNFTD

The most simple solution is:

WinMove ($MyWindowHandle, "", -1, -1, $NewHorizontalSize, $NewVerticalSize)

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.