Sign in to follow this  
Followers 0
FunkyBunnies

control to resize GUI?

5 posts in this topic

Hi all,

I'm getting a script that uses a resizeable GUI running okay but I don't like the appearance of the sizebox frame.

so I want to make a button in the bottom right corner like a lot of apps that'll allow you to resize the window.

I figured I'd ask first though if it's been created already or how you'd go about approaching it if you don't mind?

Thanks!

Share this post


Link to post
Share on other sites



#include <GUIStatusBar.au3>
#include <WindowsConstants.au3>

Dim Const $GUI_SS_STYLE = BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_THICKFRAME)

$hGUI = GUICreate('Title', 500, 300, Default, Default, $GUI_SS_STYLE)
Dim $hStatusBar = _GUICtrlStatusBar_Create($hGUI)

GUIRegisterMsg($WM_SIZE, 'WM_SIZE')

GUISetState()

Do
    Sleep(20)
Until GUIGetMsg() = -3



Func WM_SIZE($hWnd, $iMsg, $wParam, $lParam)
    _GUICtrlStatusBar_Resize($hStatusBar)
EndFunc

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Awesome, thanks Authenticity

I'd like to avoid the thickframe style and use rounded corners for the window if possible, though

So if I go that route, would I have to write my own function for resizing? Any suggestions would be awesome, I'm still a huge newb at this

Edited by FunkyBunnies

Share this post


Link to post
Share on other sites

If it's resizeable then it's OK I guess, hmm?.

Share this post


Link to post
Share on other sites

definitely, for functionality

but the target users of the script I'm making are artists. Although I don't personally mind the windows classic look to it, some of my friends do. I guess I was just wondering if anyone had made a resize control for use with autoit or could explain the theory or some way to resize a gui with rounded corners without looking super ugly :D

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  
Followers 0