找回密码
 加入
搜索
查看: 2609|回复: 4

[AU3基础] EDIT窗口横向滚动条取消,如何取消自动换行?

  [复制链接]
发表于 2013-9-15 07:58:56 | 显示全部楼层 |阅读模式
本帖最后由 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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2013-9-24 16:44:45 | 显示全部楼层
BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL)

评分

参与人数 1金钱 +60 收起 理由
heavenm + 60

查看全部评分

 楼主| 发表于 2013-9-24 17:09:56 | 显示全部楼层
本帖最后由 heavenm 于 2013-9-24 17:33 编辑
BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL)
pcbar 发表于 2013-9-24 16:44



    斑竹英明,可以的
发表于 2013-9-25 13:05:42 | 显示全部楼层
pcbar竟然出现了。。。
发表于 2013-10-5 13:07:50 | 显示全部楼层
看到pcbar真是难得啊
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-6 13:18 , Processed in 0.087998 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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