RichEdit - Eine bestimmte Zeile zentrieren

  • 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

    [/autoit]
    Zitat

    [Heute, 11:39] Raupi: Soll ich es dir machen?
    [Heute, 11:47] BugFix: "Soll ich es dir machen? " - also Raupi !! bitte nicht so öffentlich :rofl:

    Zitat

    [Heute, 11:51] BugFix: und ich werde es mir jetzt machen - das Mittagessen :P

    AMsg UDF v1.00.00 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 100%
    OwnStyle UDF Version 1.10.00 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 100%

    4 Mal editiert, zuletzt von H2112 (9. November 2009 um 15:38)

  • Ich hab noch eine Frage bezüglich rtf Formatierungen und wollte keinen neuen Thread aufmachen.

    Und jetzt zu meiner Frage:
    Gibt es eine Möglichkeit, eine bestimmte Zeile zentriert zu machen?

    Danke schonmal für die Antworten.

    MfG
    h2112

    Edit:
    So auch hier hab ich die Lösung gefunden:

    [autoit]

    _GUICtrlRichEdit_SetParaAlignment($hRichEdit, "c")

    [/autoit]
    Zitat

    [Heute, 11:39] Raupi: Soll ich es dir machen?
    [Heute, 11:47] BugFix: "Soll ich es dir machen? " - also Raupi !! bitte nicht so öffentlich :rofl:

    Zitat

    [Heute, 11:51] BugFix: und ich werde es mir jetzt machen - das Mittagessen :P

    AMsg UDF v1.00.00 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 100%
    OwnStyle UDF Version 1.10.00 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 100%

    Einmal editiert, zuletzt von H2112 (9. November 2009 um 15:38)