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

[GUI管理] 求人帮忙完善代码,让我这个新手研究下!

  [复制链接]
发表于 2012-3-14 20:25:35 | 显示全部楼层 |阅读模式
本帖最后由 23245374 于 2012-3-14 20:28 编辑

求两日期相隔的天数,我做了个简单的GUI,但代码总是弄不好,求高人帮下忙补充完善,也好让我研究下。另外最好让算得的结果在“计算结果”后面显示出来!

#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$Date1 = GUICtrlCreateDate("2012/09/15 19:37:1", 80, 88, 186, 21)
$Date2 = GUICtrlCreateDate("2012/03/14 19:37:3", 80, 120, 186, 21)
$Button1 = GUICtrlCreateButton("计算结果", 304, 104, 75, 25)
$Group1 = GUICtrlCreateGroup("测算", 40, 48, 465, 137)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-20 00:13 , Processed in 0.072840 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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