Frage zu einer GUI

  • Also für die Profis bestimmt simpel für mich verzweiflung pur!!

    Ich habe eine Gui:

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1_1 = GUICreate("Shutdown", 227, 115, 522, 178)
    $Input = GUICtrlCreateInput("", 72, 24, 137, 21, BitOR($ES_AUTOHSCROLL,$ES_NUMBER))
    $Label1 = GUICtrlCreateLabel("Minuten", 8, 24, 50, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetColor(-1, 0x000000)
    $Button2 = GUICtrlCreateButton("END", 112, 64, 97, 33, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
    $Button1 = GUICtrlCreateButton("START", 8, 64, 89, 33, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button2
    Exit
    Case $Button1
    $E = GUICtrlRead( $Input )
    Sleep( $E *60000 )
    Shutdown( 5 )
    EndSwitch
    WEnd

    [/autoit]

    Simpleas Programm usw...

    Jetzt sieht die Gui so aber Sch**** aus Des halb möchte ich Nicht diese eckigen ecken sondern rund oder Keine ahung Mit echkigen rundu ngen:D
    also irgendiwe so was?

  • Du könntest nach dem GuiCreate das hier machen falls dir das besser gefällt ist aber geschmackssache.

    [autoit]

    _GUICreateRoundRect($Form1_1, 49,49)

    [/autoit]

    Diese Func musste noch ins Script einfügen:

    Spoiler anzeigen
    [autoit]

    Func _GUICreateRoundRect($hwnd, $radx=15,$rady=15)
    $pos = WinGetPos($hwnd)

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

    $1 = 0
    $2 = 0
    $3 = $pos[2]
    $4 = $pos[3]
    $ret = DllCall("gdi32.dll", "long", "CreateRoundRectRgn", "long", $1, "long", $2, "long", $3, "long", $4,"long",$radx,"long",$rady)

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

    DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $hwnd, "long", $ret[0], "int", 1)
    EndFunc ;==>_GUICreateRoundRect

    [/autoit]

    Edit: Mach doch ein Toolfenster draus ist doch auch ganz nett

    [autoit]

    $Form1_1 = GUICreate("Shutdown", 227, 115, 522, 178,-1, BitOR($WS_EX_TOOLWINDOW, $WS_EX_WINDOWEDGE,$WS_EX_TOPMOST, $WS_EX_APPWINDOW))

    [/autoit]

    MfG Hellboy

    MfG hellboy

    [autoit]

    Do
    _help($user)
    Until $questions = 0

    [/autoit]

    Meine Werke:
    Ste`s Web-Radio

  • Danke für die antwort aber so wahr das nich gemeint sry:D

    Ich meine jetzt ehm ...Ich hab en Bild! Auf dem bild is zu sehen Spongbob! das die gui das aus sieht wie spongbob geht so was????

  • Zitat

    das die gui das aus sieht wie spongbob geht so was????


    GUISpongebobCreate? :D
    Du kannst ein transparentes Bild in die GUI packen und mit _WinApi_SetLayeredWindowAttributes eine Farbe im Fenster transparent schalten. Dafür musst du die GUI aber mit dem Stil $WS_EX_LAYERED erstellen.