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

低级问题---如何设置文本框

[复制链接]
发表于 2009-7-15 00:06:24 | 显示全部楼层 |阅读模式
本帖最后由 水之心 于 2009-7-15 00:39 编辑

在窗体设计中....那个文本框自动换行是怎样设置的??就是在第一行满了的时候换行到第二行,但内容是连续的.     哪位老鸟能指点一下小菜鸟???
发表于 2009-7-15 00:25:52 | 显示全部楼层
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 304, 173, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 273, 137, $ES_WANTRETURN)
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
        EndSwitch
WEnd
发表于 2009-7-15 00:26:32 | 显示全部楼层
GUI 控件风格--Edit/Input 样式
$ES_WANTRETURN 0x1000

Specifies that a carriage return be inserted when the user presses the ENTER key while typing text into a multiline edit control in a dialog box. If you do not specify this style, pressing the ENTER key has the same effect as pressing the dialog box’s default push button. This style has no effect on a single-line edit control.
自己找翻译吧
 楼主| 发表于 2009-7-15 00:28:32 | 显示全部楼层
太感谢了~~~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-5 06:07 , Processed in 0.069252 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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