找回密码
 加入
搜索
查看: 1349|回复: 3

请帮助,如何实现平滑进度条?

[复制链接]
发表于 2009-7-13 10:58:31 | 显示全部楼层 |阅读模式
本帖最后由 即即 于 2009-7-13 12:58 编辑

如何实现显示步进状态条是一平滑的滚动条而非默认分段条。
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 290, 180)
$Progress1 = GUICtrlCreateProgress(40, 64, 198, 17, $PBS_SMOOTH)
GUISetState(@SW_SHOW)

$n = 1
While 1
        GUICtrlSetData($Progress1, ($n / 100) * 100)
        $n += 1
        Sleep(100)
        If $n = 100 Then $n = 1
        If GUIGetMsg() = $GUI_EVENT_CLOSE Then Exit
WEnd
发表于 2009-7-13 11:20:40 | 显示全部楼层
 楼主| 发表于 2009-7-13 12:58:05 | 显示全部楼层
谢谢liongodmien,问题已经解决。
发表于 2009-8-7 00:36:55 | 显示全部楼层
学习学习了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-3 07:33 , Processed in 0.073232 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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