GuiCreate ohne Titelleiste und trotzdem verschiebbar

  • Hallo zusammen
    ich versuche gerade ein Form zu erstellen wobei die Titelleiste komplett unsichtbar sein soll, aber trotzdem soll das Form noch verschiebbar sein. Vielleicht kennt jemand einen Parameter Style bzw. Exstyle bei GuiCreate wodurch dies möglich ist.

    [autoit]

    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    Global $Form1,$button_close
    $Form1 = GUICreate("",340,150, -1,-1,$WS_EX_TOPMOST+$WS_EX_WINDOWEDGE+$WS_EX_DLGMODALFRAME )
    $label1 = GUICtrlCreateLabel("Label 1",20,20,200,40)
    $button_exit = GUICtrlCreateButton("Exit",280,80,40,20)
    GUISetState(@SW_SHOW, $Form1)

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

    While 1
    $nMsg = GUIGetMsg()
    If $nMsg = $button_exit Then
    Exit
    EndIf
    WEnd

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

    Bei diesem Beispiel ist soweit alles ok, ausser die blaue Titelleiste sollte noch unsichtbar sein und trotzdem soll das Fenster noch verschiebbar sein.

    Einmal editiert, zuletzt von johny1099 (22. Juli 2012 um 21:10)

  • Das geht mit dem Style $GUI_WS_EX_PARENTDRAG.

    Zitat

    Allow the label or pic control to be used as the title bar to drag the whole the parent window.

  • Spoiler anzeigen
    [autoit]


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

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

    Global $Form1,$button_close
    $Form1 = GUICreate("",340,150, -1,-1, $WS_POPUPWINDOW, $WS_EX_TOPMOST+$WS_EX_DLGMODALFRAME)

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

    $label1 = GUICtrlCreateLabel("Label 1",20,20,200,40, Default, $GUI_WS_EX_PARENTDRAG)
    $button_exit = GUICtrlCreateButton("Exit",280,80,40,20)

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

    GUISetState(@SW_SHOW, $Form1)

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

    While 1
    $nMsg = GUIGetMsg()
    If $nMsg = $button_exit Then
    Exit
    EndIf
    WEnd

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


    wie schon gesagte wurde, $GUI_WS_EX_PARENTDRAG
    du kannst jetzt durch klick auf Label 1 die GUI verschieben