本帖最后由 heavenm 于 2013-9-15 08:02 编辑
加滚动条才可以不自动换行
但是SCITE编辑器 没滚动条也能不自动换行#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
Global $oMyError
Example()
Example2()
Func Example()
Local $myedit, $msg
GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered
$myedit = GUICtrlCreateEdit("First line" & @CRLF, 176, 32, 121, 97, $ES_AUTOVSCROLL + $WS_VSCROLL)
GUISetState()
Send("{END}")
; will be append dont' forget 3rd parameter
GUICtrlSetData($myedit, "讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行", 1)
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
EndFunc ;==>Example
Func Example2()
Local $myedit, $msg
GUICreate("My GUI edit") ; will create a dialog box that when displayed is centered
$myedit = GUICtrlCreateEdit("First line" & @CRLF, 176, 32, 121, 97, BitOR($ES_AUTOVSCROLL, $WS_VSCROLL,$WS_HSCROLL))
GUISetState()
Send("{END}")
; will be append dont' forget 3rd parameter
GUICtrlSetData($myedit, "讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行讨厌的自动换行", 1)
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
EndFunc ;==>Example
|