Jump to content
Sign in to follow this  
JakElroy

Gui resize?

Recommended Posts

JakElroy

I googled it forever and ever, searched through every result and none of it worked.

I just need to know how to make my GUI resizable, have a title bar on the top, and be maximizeable.

Share this post


Link to post
Share on other sites
JakElroy

GuiCreate("Title",400,400,-1,-1,$WS_SIZEBOX)

Thank you. So much.

What are the constants for adding minimize and maximize buttons at the top?

Share this post


Link to post
Share on other sites
Nunos

Remarks

By default the dialog box is non sizable and non maximizable. So WS_SIZEBOX or WS_MAXIMIZEBOX can be used in the style parameter.

As defining only one style just set this style don't forget to combine it with default ones, i.e. just defining WS_SIZEBOX will not set WS_MINIMIZEBOX, WS_CAPTION, WS_POPUP, WS_SYSMENU. So the best method to define a resizeable window is to use WS_OVERLAPPEDwindow.

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

I believe those are the includes

Edited by Nunos

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  

×