Jump to content
Sign in to follow this  

Icons in window move relative to size of window... not what I want

Recommended Posts


I think this may have been asked and answered before, but having searched I can't find the answerm although I think it's related to GUICoordMode.

I have a window with some icons in it. I want to be able to resize the window without moving the icons, just clip whatever doesn't fit inside the window. I have included below a simple script to show the problem.

Thanks for any help.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate(" My GUI Icons", 250, 250, -1, -1, BitOR($WS_SIZEBOX, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX))

GUICtrlCreateIcon("shell32.dll", 10, 20, 20)
GUICtrlCreateIcon("shell32.dll", 7, 20, 75, 32, 32)

While 1
Local $msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Share this post

Link to post
Share on other sites

Actually - I was having the same issue as you today and searched the forum for that fix.


Opt("GUIResizeMode.. is the big brother of GUICtrlSetResizing -the help file of which has a list of resizing constants.

One of which is $GUI_DOCKALL (802) "(2+32+256+512) so the control will not move during resizing"

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  

  • Create New...