本帖最后由 229989799 于 2017-3-20 09:32 编辑
如何让鼠标移到控件处,文本改变颜色呢????/#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 381, 201, 192, 124)
$Label1 = GUICtrlCreateLabel("如何让鼠标移到此处,文本改变颜色呢", 40, 80, 280, 17)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Label1
Msgbox(0,"hello","hello")
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|