Problem mit Label!

  • Hallo nochmals zusammen, ich habe da noch ein kleines problem, und zwar mit dem GUICtrlCreateLabel.
    Wenn ich es z.B. ins GUICtrlCreateTab schreibe kommt so ein sch*** raus, kann man das irgendwie vermeiden.
    Das ist auch beim GUICtrlCreatePic so wenn ich es alls Hintergrund nehmen will, in einem Fenster, und ein Label darüber schreibe kommt auch so ein Ergebnis raus.

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    ; Fenster
    GUICreate("Test", 400, 350)

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

    ;Schrift
    $font = "Cracked Johnnie"
    GUICtrlCreateLabel("Nummer:", 20, 20, 120, 20)
    GUICtrlSetColor(-1, 0xdebf6c)
    GUICtrlSetFont(-1, 12, 400, 1, $font)

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

    ; Schrift_2
    $label = GUICtrlCreateLabel("", 40, 90, 300, 20)

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

    ; Gurppe
    GUICtrlCreateTab(10, 60, 380, 100)
    ; Button
    $button = GUICtrlCreateButton("Nummer1", 10, 180, 100, 20)
    $button2 = GUICtrlCreateButton("Nummer2", 120, 180, 100, 20)

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

    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()

    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $button
    GUICtrlSetData($label, "54654")
    Case $button2
    GUICtrlSetData($label, "76564")
    EndSwitch

    WEnd

    [/autoit]
  • So gehts: BKColor Transparent und REIHENFOLGE

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

    ; Fenster
    GUICreate("Test", 400, 350)

    ;Schrift
    $font = "Cracked Johnnie"
    GUICtrlCreateLabel("Nummer:", 20, 20, 120, 20)
    GUICtrlSetColor(-1, 0xdebf6c)
    GUICtrlSetFont(-1, 12, 400, 1, $font)

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


    ; Gurppe
    GUICtrlCreateTab(10, 60, 380, 100)
    ; Schrift_2
    $label = GUICtrlCreateLabel("dd", 40, 90, 300, 20)
    GUICtrlSetBKColor($label,$GUI_BKCOLOR_TRANSPARENT )
    ; Button
    $button = GUICtrlCreateButton("Nummer1", 10, 180, 100, 20)
    $button2 = GUICtrlCreateButton("Nummer2", 120, 180, 100, 20)

    GUISetState(@SW_SHOW)

    While 1
    $nMsg = GUIGetMsg()

    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $button
    GUICtrlSetData($label, "54654")
    Case $button2
    GUICtrlSetData($label, "76564")
    EndSwitch
    WEnd

    [/autoit]
  • VIELEN Dank für dein Hilfe @progandy. :]
    Jetzt klappt es.

    Einmal editiert, zuletzt von m3hm3t (16. Oktober 2007 um 19:25)