如何插入一个带行号的edit控件
#include <EditConstants.au3>#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Edit1 = GUICtrlCreateEdit("", 48, 56, 497, 361)
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
如果往edit里面输入内容,在行前面显示行号
如
1 dsadasdfa
2 sadsadasdas
3 dsadsadasdasdasdsadsadasdasdas
4 dsadasdas
5 dasdasdsa
有办法实现吗 伪代码:正则匹配行首,以数组下标做行号添加。
页:
[1]