Jump to content

Gui Width Minimum Size Limitation?


fmen
 Share

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
Link to comment
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
Link to comment
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?
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...