gcue 10 Posted June 8, 2011 Hello. I am trying to setup an edit control which logs a process's successful steps and its errors. I am trying to do Normal Text (black). Error text (Bold and Red). I see how to set the character color for a selection of text (_GUICtrlRichEdit_SetCharColor), but this requires character selection and it will be hard to keep track of which characters are in each new line. Is there an easy way of doing this? I am not seeing a way in the help file. Local $hGui, $hRichEdit, $iMsg $hGui = GUICreate("Example (" & StringTrimRight(@ScriptName,4) &")", 320, 350, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a test.", 10, 10, 300, 220, _ BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL)) _GUICtrlRichEdit_AppendText($hRichEdit, @CR & "This is more text") _GUICtrlRichEdit_SetCharColor($hRichEdit, "304050") _GUICtrlRichEdit_AppendText($hRichEdit, @cr & "This is more text") GUISetState() While True $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE GUIDelete() Exit EndSelect WEnd Share this post Link to post Share on other sites
gcue 10 Posted June 8, 2011 (edited) after further searching I found this... thanks Melba!! Edited June 8, 2011 by gcue Share this post Link to post Share on other sites