本帖最后由 hnfeng 于 2018-3-10 21:04 编辑
用富文本搞定了
多谢 @afan#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiRichEdit.au3>
$Form1 = GUICreate("Form1", 412, 273)
$Edit1 = _GUICtrlRichEdit_Create($Form1, "", 48, 40, 313, 201)
GUISetState(@SW_SHOW)
$s_text = "中文字WWWIIIabcdef中文字英文字abcdef" & @CRLF & _
"中文字WWWIIIabcdef中文字英文字abcdef" & @CRLF & _
"中文字WWWIIIabcdef中文字英文字abcdef" & @CRLF & _
"中文字WWWIIIabcdef中文字英文字abcdef" & @CRLF & _
"中文字WWWIIIabcdef中文字英文字abcdef" & @CRLF & _
"中文字WWWIIIabcdef中文字英文字abcdef"
_GUICtrlRichEdit_SetText($Edit1, $s_text)
_GUICtrlRichEdit_SetSel($Edit1, 0, -1)
_GUICtrlRichEdit_SetFont($Edit1, 10, "新宋体")
_GUICtrlRichEdit_SetParaSpacing($Edit1, .25)
_GUICtrlRichEdit_SetSel($Edit1, 0, 0)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete()
Exit
EndSwitch
WEnd
|