Jump to content

control to resize GUI?


Recommended Posts

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!

Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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

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