Jump to content

Recommended Posts

Posted

This is pretty embarassing... I'm unable to create a resizable GUI using AutoIt. Is there any special style / extended style combination that I have to use to get it working? I'm using 3.2.10.0...

Posted

look don't be embarassed im sure eve jon comes across porblems... :)

sorry i don't know :P

i'll have a look:O

$WS_OVERLAPPEDWINDOW is the answer... lol...

Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the WS_TILEDWINDOW style. => no idea which of the "sub-styles" is responsible for resizing though...

Thanks for your time anyway ashley!

Posted (edited)

umm hold on I have the answer to this

EDIT:

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 215, 137, -1, -1, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Button1", 8, 4, 75, 25 )
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

I tore that out of something I found by Saunders

Edited by DBak

[center][/center]

Posted (edited)

This is pretty embarassing... I'm unable to create a resizable GUI using AutoIt. Is there any special style / extended style combination that I have to use to get it working? I'm using 3.2.10.0...

This one isn't working?

#include <GUIConstants.au3>

GUICreate("My GUI",300,200,-1,-1,BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX)) 
GUISetState (@SW_SHOW) 

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

EDIT: only $WS_SIZEBOX style need to be added and I think this has nothing to do with/without Vista

Edited by Zedna
Posted

This one isn't working?

#include <GUIConstants.au3>

GUICreate("My GUI",300,200,-1,-1,BitOr($GUI_SS_DEFAULT_GUI,$WS_MAXIMIZEBOX,$WS_SIZEBOX)) 
GUISetState (@SW_SHOW) 

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

EDIT: only $WS_SIZEBOX style need to be added and I think this has nothing to do with/without Vista

$WS_SIZEBOX and $WS_THICKFRAME work..

I found both quite easily in the help file now. I guess working too long can make you overlook things...

And yes, it has nothing to do with Vista. I just stated that since nothing I did seemed to bring the feature into my application.

Thanks Alex, Zedna and Dbak!

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
×
×
  • Create New...