Ich habe da mal eine Frage zu GUICtrlSetResizing

    • Offizieller Beitrag

    Hallo.

    Vielleicht kann mir ja jemend helfen .

    Wenn ich eine Gui erstelle dann möchte ich die Controls daran hindern sich nach einer Größenänderung der GUI zu Resizen.
    Bis jetzt mache ich das wie folgt :

    [autoit]

    $Test=GUICtrlCreateLabel("Testlabel", 8, 7)
    GUICtrlSetResizing(-1, $Gui_DockAll)

    [/autoit]


    Gibt´s ne möglichkeit des $Gui_DockAll auf alle Controls Global anzuwenden? MIt irgendeiner Option oder so ?

    Für eure Hilfe danke ich schon mal im vorraus .

    Edit habe die Antwort selber gefunden

    [autoit]

    Opt("GUIResizeMode", 802)

    [/autoit]
  • Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ListBoxConstants.au3>
    #include <ProgressConstants.au3>
    #include <TreeViewConstants.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 633, 447, 193, 125, 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))
    $Input1 = GUICtrlCreateInput("Input1", 120, 32, 385, 21)
    $Button1 = GUICtrlCreateButton("Button1", 16, 24, 73, 33, 0)
    $List1 = GUICtrlCreateList("", 528, 40, 81, 71)
    $Progress1 = GUICtrlCreateProgress(64, 320, 521, 49)
    $TreeView1 = GUICtrlCreateTreeView(24, 168, 73, 129)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

    [/autoit]

    flakert beim verändern

    • Offizieller Beitrag

    So flackert es nicht:

    Spoiler anzeigen
    [autoit]


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

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

    #Region ### START Koda GUI section ### Form=
    Global Const $WS_EX_COMPOSITED = 0x2000000 ; Windows XP: Paints all descendants of a window in bottom-to-top painting order using double-buffering.
    $Form1 = GUICreate("Form1", 633, 447, 193, 125, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX), $WS_EX_COMPOSITED)
    $Input1 = GUICtrlCreateInput("Input1", 120, 32, 385, 21)
    $Button1 = GUICtrlCreateButton("Button1", 16, 24, 73, 33, 0)
    $List1 = GUICtrlCreateList("", 528, 40, 81, 71)
    $Progress1 = GUICtrlCreateProgress(64, 320, 521, 49)
    $TreeView1 = GUICtrlCreateTreeView(24, 168, 73, 129)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

    [/autoit]