低级问题---如何设置文本框
本帖最后由 水之心 于 2009-7-15 00:39 编辑在窗体设计中....那个文本框自动换行是怎样设置的??就是在第一行满了的时候换行到第二行,但内容是连续的. 哪位老鸟能指点一下小菜鸟??? #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 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.
自己找翻译吧 太感谢了~~~
页:
[1]