AW: richtext ctrl, changing font, size and color
Jürgen Ladstätter
info at innova-studios.com
Fri Feb 29 03:57:22 PST 2008
Thanks Julian for your reply, i will try that as soon as possible. By the
way: great work! Wrote about wxWidgets my diploma thesis. So big big thx for
you beeing a developer in wxwidgets =)
Kind regards, juergen
-----Ursprüngliche Nachricht-----
Von: Julian Smart [mailto:julian at anthemion.co.uk]
Gesendet: Freitag, 29. Februar 2008 12:28
An: wx-users at lists.wxwidgets.org
Betreff: Re: richtext ctrl, changing font, size and color
Hi Jurgen,
You can use wxRichTextCtrl::SetStyle together with wxTextAttr[Ex]. I
think the documentation for these should make it clear. To get the style
at a particular point, use a _fresh_ wxTextAttr object each time with
GetStyle.
BTW a number of bugs have been fixed in SVN/forthcoming 2.8.8 so you
might want to use the latest from include/wx/richtext, src/richtext.
Best regards,
Julian
Jürgen Ladstätter wrote:
> hi there,
>
> i'm in need of a control to set different fonts, colors and sizes and so i
> thought i'd use richtext ctrl. now i'm in need to set those attributes for
a
> group of chars that are selected.
> in the documentation i don't find any functions that could do this. are
> there any hints for me? i also would need functions to get the color, size
> and font for a specific character.
>
> kind regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
>
>
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list