Jump to content
Sign in to follow this  

Want to reduce window size

Recommended Posts


I will improve the example if I have time.

#include <GuiConstants.au3>

$must_be_larger_than_titlebar_height = 40

$GUI = GuiCreate("No minimum size!", 1, $must_be_larger_than_titlebar_height , -99, -99, BitOr($WS_THICKFRAME))
WinMove($GUI,"", (@DesktopWidth-300)/2, (@DesktopHeight-200)/2, 300, 200)

While GuiGetMsg() <> $GUI_EVENT_CLOSE

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites

:D Thanks for you responce - that worked alright but a little ord way around but I have another problem now...

How do I get return events or messages when the window has resized - is there a nice way to this like @GUI_Resized incl. new size variables or do I have to check durring runtime msg...

Kåre :)

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.