@ h2112
...nette Kommentare für ne Quizstunde. ![]()
ZitatIch lass Sie mal den Fehler suchen, damit Sie wieder was zu tun hat
Weißt du nun woran es liegen kann?
Wenn ja, dann sollten wir das heitere Quizraten beenden....
am besten mit einer "Auflösung"! ![]()
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
Global $Farbe
$Form1_1 = GUICreate("Form1", 1009, 770, 513, 94, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_THICKFRAME, $WS_TABSTOP))
$Pic1 = GUICtrlCreatePic("C:\Hintergrund.jpg", -16, 8, 1024, 768, BitOR($GUI_SS_DEFAULT_PIC, $WS_CLIPSIBLINGS))
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
GUICtrlSetState(-1, $GUI_DISABLE)
$Input1 = GUICtrlCreateInput("Input1", 856, 48, 129, 21)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
$Tab1 = GUICtrlCreateTab(192, 128, 593, 369)
GUICtrlSetState(-1, $GUI_ONTOP)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
GUICtrlCreateTabItem("")
$Label1 = GUICtrlCreateLabel("Label1", 32, 40, 85, 36, $SS_CENTER)
GUICtrlSetFont(-1, 20, 400, 0, "Arial")
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)
AdlibRegister("_Hover_Label")
[/autoit][autoit][/autoit][autoit]GUIGetMsg()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Global $Farbe = False
[/autoit][autoit][/autoit][autoit]Func _Hover_Label()
$pos = GUIGetCursorInfo()
If $pos[4] = $label1 And $Farbe = false Then
GUICtrlSetBkColor($label1, 0xFF0000)
$Farbe = True
ElseIf $pos <> $label1 And $Farbe = True then
GUICtrlSetBkColor($label1, -2)
$Farbe = False
EndIf
EndFunc
Grüße
Ilse ![]()