Jump to content

Recommended Posts

Posted (edited)

this is nothing important, but i thought to ask, i make a window and i want to set a limit in its resizing, so i use this:

#include <GuiConstants.au3>
$Gui = GUICreate('', 500, 500, -1, -1, BitOR($WS_SIZEBOX,$WS_MAXIMIZEBOX,$WS_MINIMIZEBOX))
GUISetState()
While 1
    $ms = GUIGetMsg()
    If $ms = $GUI_EVENT_CLOSE Then
        Exit
    EndIf   
    $ps = WinGetPos($Gui)
    If $ps[2] < 300 Or $ps[3] < 300 Then
        WinMove($Gui, '', $ps[0], $ps[1], 300, 300)
    EndIf
WEnd

but when i resize, if the size gets lower than 300 i doesnt resize back until i stop resizing :) bit of difficult to explain, try the code and you ll see

any solutions?

Edited by Gif

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
  • Recently Browsing   0 members

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