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

新版本的问题

[复制链接]
发表于 2008-8-5 18:11:43 | 显示全部楼层 |阅读模式
以前用 3.2.4.9 汉化版写的脚本,
用刚安装的 3.2.13.6.1 汉化版编译,出错了:

ERROR: $ES_READONLY: undeclared global variable.
$T1_e1 = GUICtrlCreateEdit($T1_p, $T1_a + $j, $T1_b + $i * 7, 240, 120, $ES_READONLY,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Administrator\桌面\all.au3 - 1 error(s), 22 warning(s)
!>17:39:43 AU3Check 结束:[CODE]:2
+>17:40:04 ACNWrapper 完成!
>退出代码: 0    时间: 22.093


原代码是:
$T1_e1 = GUICtrlCreateEdit($T1_p, $T1_a + $j, $T1_b + $i * 7, 240, 120, $ES_READONLY, "")


同样出错的的还有:
$T2_E1 = GUICtrlCreateEdit($txt, 30, 90, 330, 210, BitOR($es_autovscroll, $ES_AUTOHSCROLL, $ES_READONLY), "")


查了一下新版本的帮忙,这此样式都支持的.
那么,这个是不是新版本的BUG ?
有没有人知道??

[ 本帖最后由 nodisk 于 2008-8-7 15:08 编辑 ]
发表于 2008-8-5 19:23:33 | 显示全部楼层
头文件不同,如果有用过GUI需要包括以下几个
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
发表于 2008-8-5 20:54:19 | 显示全部楼层
#include <EditConstants.au3>添加这个应该就行了吧,read_only是edit控件的扩展属性

[ 本帖最后由 netegg 于 2008-8-5 20:56 编辑 ]
 楼主| 发表于 2008-8-7 15:08:14 | 显示全部楼层
加了这个 #include <EditConstants.au3>
就OK了~
谢谢 netegg

我现在用3.2.13.6.1 汉化版了!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-4 05:20 , Processed in 0.069366 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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