Festellen ob mit der Maus über Button

  • Hi,

    wenn der User mit der Maus über einen Button fährt, soll eine Msg-Box. aufgehen? Wie kann ich das machen?

  • Hallo Gespenst,

    vielleicht hilft Dir das Beispiel weiter. Es ist natürlich keine Msgbox. :)

    Spoiler anzeigen
    [autoit]


    #include <GuiConstants.au3>

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

    $Gui = GUICreate("Test", 72, 90, -1, -1, -1)
    $icon = GUICtrlCreateIcon("shell32.dll", -202, 19, 19, 32, 32, 0)
    $button = GUICtrlCreateButton("Test", 10, 10, 52, 70, BitOR($WS_CLIPSIBLINGS, $BS_BOTTOM, $BS_MULTILINE))
    GUICtrlSetTip(-1, 'Gruss vom Gespenst...')
    GUICtrlSetFont(-1, 8, 700)
    GUISetState(@SW_SHOW, $Gui)

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    Case $msg = $button
    EndSelect
    WEnd

    [/autoit]


    Schönes WE und weiterhin viel Erfolg !