Schnelle Gui frage

  • Moin....

    Ich weiß, das Thema gab es schonmal, nur findet die Forum suche bei MIR nichts.

    Ich habe ein Gui und ich möchte, dass man das Gui mit SW_SIZEBOX auf eine festeglegte mnimale Größe resizen kann, z-B. auf 300 x 200

    im normalfall, kann man ja resizen bis irgendwie 5x5


    Danke im vorraus

  • Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 447, 193, 115,0x00040000)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    GUIRegisterMsg($WM_GETMINMAXINFO, "MY_WM_GETMINMAXINFO")
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd
    Func MY_WM_GETMINMAXINFO($hWnd, $msg, $wParam, $lParam)
    If $hWnd = $Form1 Then
    Local $minmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int", $lParam)
    DllStructSetData($minmaxinfo, 7, 300) ; min X
    DllStructSetData($minmaxinfo, 8, 200) ; min Y
    EndIf
    EndFunc ;==>MY_WM_GETMINMAXINFO

    [/autoit]

    mfg. Jam00

  • Schau mal inder Hilfe nach unter: GUICtrlSetResizing (Definiert die Methode zur Größenänderung, die von einem Steuerelement verwendet wird.)

    Lieben Gruß,
    Alina

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Geheime Information: ;)
    k3mrwmIBHejryPvylQSFieDF5f3VOnk6iLAVBGVhKQegrFuWr3iraNIblLweSW4WgqI0SrRbS7U5jI3sn50R4a15Cthu1bEr