User forums > General (but related to Code::Blocks)

wxSmith and wxRichTextCtrl

(1/1)

BrokenBrain:
I read wxSmith features in this page: http://wiki.codeblocks.org/index.php?title=Comparison_of_wxSmith_features
i found wxRichTextCtrl  in this page, but i can't find this in wxSmith tool bar.
Where is it?

deadneurons:
I've been playing with wxSmith for fun...
If I'm not mistaken, you use wxTextCtrl, and you should
enable the wxTE_RICH or wxTE_RICH2 in the style property box, to view the property page
you should be in the resources tab on Management pane.

hope this helps.

BrokenBrain:
I tried what you say, but really when i saw the code,
i don't see any wxRichTextCtrl.
Thanks anyway

PaulS:
I am using a wxRichTextCtrl in a small project.  In wxSmith I created a wxTextCtrl and then set the class name attribute to wxRichTextCtrl (well actually a class derived from wxRichTextCtrl).  This seems to cause wxSmith to use the text ctrl in its GUI but to new a richtext ctrl.  You have to deal with events and methods unique to the rich tectctrl on your own but it is doable.

There is a decent example of wxRichTextCtrl itself in the wxWidgets samples.  It was not obvious to me from the widgets "documentation" that the control could read and write in XML format until I pored through the sample code.

Navigation

[0] Message Index

Go to full version