Jump to content
Sign in to follow this  
fmen

Gui Width Minimum Size Limitation?

Recommended Posts

No matter how small I make the $Width_01, the Gui's smallest actual width is never less than around 200. What am I doing wrong? Thanks.

#include <GUIConstants.au3>
$Title_01 = "Me"

$Width_01 = "50"
$Height_01 = "400"
$Xcoord_01 = "1000"
$YCoord_01 = "150"

$Create_01 = GuiCreate( $Title_01, $Width_01, $Height_01, $Xcoord_01,$Ycoord_01,$WS_MINIMIZEBOX+$WS_SIZEBOX)
GUISetState ()
WinSetOnTop("Me", "", 1)
GUISetBkColor (0xFFFFFF)

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

Share this post


Link to post
Share on other sites

What version of AutoIt are you using? It sizes correctly for me using 3.1.1.101 (Beta).

I am not using the beta version. You mean that the regular version has a size limitation?

Share this post


Link to post
Share on other sites

It's a limitation with using the 'closing box' and/or the WS_SIZEBOX-style.

You can try this:

...
$Create_01 = GuiCreate( $Title_01, $Width_01, $Height_01, $Xcoord_01,$Ycoord_01,BitOr($WS_CAPTION, $WS_POPUP, $WS_DLGFRAME))
...
Edited by Holger

Share this post


Link to post
Share on other sites

It's a limitation with using the 'closing box' and/or the WS_SIZEBOX-style.

You can try this:

...
$Create_01 = GuiCreate( $Title_01, $Width_01, $Height_01, $Xcoord_01,$Ycoord_01,BitOr($WS_CAPTION, $WS_POPUP, $WS_DLGFRAME))
...
The width works bow. Is there any way I can get the resizing function back?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...