Sign in to follow this  
Followers 0
kjactive

Want to reduce window size

3 posts in this topic

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))
GuiSetState()
WinMove($GUI,"", (@DesktopWidth-300)/2, (@DesktopHeight-200)/2, 300, 200)

While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd

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