PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD8]  RTF Edit field
[WD8] RTF Edit field
Débuté par Christoph Erdmann, 07 oct. 2004 19:39 - 2 réponses
Posté le 07 octobre 2004 - 19:39
Hallo,
i have a RTF-Edit-Field and I want to write with blue color and a font size 9. I take it in the style from the field, but i get black color an no font size 9. I think the style dont work with rtf fields.
Can I initialize this field otherwise.
Christoph
Posté le 08 octobre 2004 - 11:02
Hi Christoph,
do a look at RTFAdd/RTFInsert together with RTFSelection.
The code
RTFSelection(RTFCtrl, rtfColor, iLightBlue)
RFTAdd(RTFCtrl, "My blue text")
should do wjhat you want.
regards
Raimund
Hallo,
i have a RTF-Edit-Field and I want to write with blue color and a font size 9. I take it in the style from the field, but i get black color an no font size 9. I think the style dont work with rtf fields.
Can I initialize this field otherwise.
Christoph



http://www.invitec.com
Posté le 08 octobre 2004 - 11:53
Hi Raimund,
if the field is empty and you write in the initialisation from the field :
RTFSelection(RTFCtrl, rtfColor, iLightBlue)
then the field starts with blue color.
Thanks for the tip.
Christoph
Hi Christoph,
do a look at RTFAdd/RTFInsert together with RTFSelection.
The code
RTFSelection(RTFCtrl, rtfColor, iLightBlue)
RFTAdd(RTFCtrl, "My blue text")
should do wjhat you want.
regards
Raimund
Hallo,
i have a RTF-Edit-Field and I want to write with blue color and a font size 9. I take it in the style from the field, but i get black color an no font size 9. I think the style dont work with rtf fields.
Can I initialize this field otherwise.
Christoph