找回密码
 加入
搜索
查看: 1363|回复: 0

GUI中UpDown的数值只能是整数变化吗?

[复制链接]
发表于 2009-3-19 21:54:09 | 显示全部楼层 |阅读模式
我取初始值为小数,但当updown时,却是整数变化,请教高人如何做小数变化?

#include <GUIConstants.au3>

GUICreate("我的 GUI",120,80)  

$num_xs=0.5
$input_zs= GUICtrlCreateInput ($num_xs,20,22,50, 20)
$updown_zs = GUICtrlCreateUpdown($input_zs)

GUISetState ()      

; 运行脚本直到窗口被关闭
While 1
    $msg = GUIGetMsg()
   
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 18:36 , Processed in 0.072378 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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