Re: wxEuphoria Rich text control
- Posted by ghaberek (admin) Apr 27, 2015
- 1694 views
mb7001 said...
I am experimenting with it. I do not think that the dialogs will work though. As far as the control goes, I think I can hash out something that will do what I need it to.
You should be able to print a wxRichTextCtrl control like this. However, get_buffer() throws a Segmentation fault with this code.
atom buffer = get_buffer( myRichText ) show_richprint_print_buffer( myRichPrint, buffer )
You should be able to format a wxRichTextCtrl control like this. However, show_modal() throws a Segmentation fault with this code.
atom dialog = create( wxRichTextFormattingDialog, {wxRICHTEXT_FORMAT_STYLE_EDITOR,myFrame} ) show_modal( dialog )
It seems to do with the RTTI (Runtime Type Information) system. The segfaults are on wxObject::Ref for get_buffer() and wxObject::IsKindOf for show_modal().
I will try to do some additional debugging on this. Not sure what exactly is going on yet.
-Greg