#include #include #include Example() ;modified from _GUICtrlEdit_SetText example ;Character _SetText _GetText ;@CRLF @CRLF @CRLF ;@CR No - just appends @CRLF ;@LF No - just appends @CRLF ;Is there a setting for interpreting @CR as @CRLF (GUICtrlCreateEdit style option? or maybe option for _SetText or _AppendText?) ;Is there a setting for interpreting @LF as @CRLF (GUICtrlCreateEdit style option? or maybe option for _SetText or _AppendText?) ;I guess I could always preprocess @CR, @LF, and @LFCR into @CRLF before using _SetText or _AppendText ;ah heck perhaps a hack to GuiEdit.au3? Func Example() Local $idEdit ; Create GUI GUICreate("Edit Set Text", 400, 300) $idEdit = GUICtrlCreateEdit("", 2, 2, 394, 268) GUISetState(@SW_SHOW) ; Set Text _GUICtrlEdit_SetText($idEdit, "A @CRLF test" & @CRLF & "After @CRLF") _GUICtrlEdit_AppendText($idEdit, @CRLF & @CRLF) _GUICtrlEdit_AppendText($idEdit, "A @CR test" & @CR & "After @CR test") _GUICtrlEdit_AppendText($idEdit, @CRLF & @CRLF) _GUICtrlEdit_AppendText($idEdit, "A @LF test" & @LF & "After @LF test") ; Get Text MsgBox($MB_SYSTEMMODAL, "Information", _GUICtrlEdit_GetText($idEdit)) ; Loop until the user exits. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example