EDIT窗口横向滚动条取消,如何取消自动换行?
本帖最后由 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 BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL) 本帖最后由 heavenm 于 2013-9-24 17:33 编辑
BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL)
pcbar 发表于 2013-9-24 16:44 http://www.autoitx.com/images/common/back.gif
斑竹英明,可以的 pcbar竟然出现了。。。 看到pcbar真是难得啊
页:
[1]