Edit2: Bitte im zweiten Post wegen der Frage schauen. Danke!
Ich bins wieder.
Und gleich zu meiner Frage:
Ich will einen bestimmten Text in einem RichEdit Controle verändern. Doch ich bekomme das irgendwie nicht hin.
Würde mich über ein Beispiel freuen.
Die UDF die ich benutze ist im Anhang.
MfG
H2112
Edit:
Ich hab das Problem lösen können.
Hier die Funktion dafür:
[autoit];====================================================================================================
; Function Name: _GUICtrlRichEdit_SetFontColor
; Description: Select the text color
; Parameters : $hWnd - Handle to the control
; $hColor - Color value HEX (BGR)
; $iSelect - Color entire text or selection (default)
; Return values : True on success, otherwise False
; Author : Yoan Roblet (Arcker)
; Rewritten : grham
; Notes :
;====================================================================================================
;
Func _GUICtrlRichEdit_SetFontColor($hWnd, $hColor, $iSelec = False)
Local $tCharFormat = DllStructCreate($tagCHARFORMAT2)
DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat))
DllStructSetData($tCharFormat, 2, $CFM_COLOR)
DllStructSetData($tCharFormat, 6, $hColor)
Local $iSelec2 = $SCF_ALL
If $iSelec Then $iSelec2 = $SCF_SELECTION
Return __GCR_SendMessage($hWnd, $EM_SETCHARFORMAT, $iSelec, DllStructGetPtr($tCharFormat))
EndFunc ;==>_GUICtrlRichEdit_SetFontColor