连续GUICtrlSetData,怎么样才能不闪呢?
我不就是想要个酷酷的动画效果嘛?#include <GUIConstantsEx.au3>
Example()
Func Example()
Local $msg
GUICreate("My GUI"); will create a dialog box that when displayed is centered
$text = GUICtrlCreateLabel("", 10, 10,300,90)
GUICtrlSetData(-1,"")
GUISetState() ; will display an empty dialog box with a combo control with focus on
$t = "怎么样才能不闪呢????怎么样才能不闪呢????"
for $i = 1 to StringLen($t) Step +1
GUICtrlSetData($text,StringLeft($t,$i))
sleep(30)
Next
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example #include <GUIConstantsEx.au3>
Example()
Func Example()
Local $msg
GUICreate("My GUI"); will create a dialog box that when displayed is centered
$text = GUICtrlCreateEdit("", 10, 10,300,90,BitOR(0x0800,0x0004))
GUICtrlSetData(-1,"")
GUISetState() ; will display an empty dialog box with a combo control with focus on
$t = "怎么样才能不闪呢????怎么样才能不闪呢????"
for $i = 1 to StringLen($t) Step +1
GUICtrlSetData($text,StringLeft($t,$i))
sleep(50)
Next
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example 没有什么变化呀
页:
[1]