l4ever 发表于 2011-4-1 12:31:24

连续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

3mile 发表于 2011-4-1 13:30:24

#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

m765555 发表于 2011-4-1 17:54:08

没有什么变化呀
页: [1]
查看完整版本: 连续GUICtrlSetData,怎么样才能不闪呢?