Jump to content

Help - Stop Controls Moving On Resize


Recommended Posts

Have a script that uses autoit-gui. The window is resized using WinMove and I do not want my controls to move with resizing. I have used GUISetControlEx ( controlref, "", $GUI_DOCKSIZE ) but the control still moves over to the left of the window when the window width is increased. How can I stop this :whistle:

Link to comment
Share on other sites

Have a script that uses autoit-gui. The window is resized using WinMove and I do not want my controls to move with resizing. I have used GUISetControlEx ( controlref, "", $GUI_DOCKSIZE ) but the control still moves over to the left of the window when the window width is increased. How can I stop this    B)

The best is to have the Guibox not resizable.

If you say GUI_DOCKSIZE that just give information on size not on position.

So you need to add where you want to dock your control.

For instance GUI_DOCKTOP+ GUIDOCKLEFT will keep your control at the same X,Y that you use when you create it.

:whistle:

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