找回密码
 加入
搜索
查看: 1927|回复: 2

[GUI管理] 连续GUICtrlSetData,怎么样才能不闪呢?

[复制链接]
发表于 2011-4-1 12:31:24 | 显示全部楼层 |阅读模式
我不就是想要个酷酷的动画效果嘛?
#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
发表于 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
发表于 2011-4-1 17:54:08 | 显示全部楼层
没有什么变化呀
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 11:09 , Processed in 0.096007 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表