Class in wxRichTextCtrl Component Supporting FormCheckBox ?

19 views
Skip to first unread message

jank...@sina.com

unread,
Mar 19, 2013, 2:22:38 AM3/19/13
to wx-u...@googlegroups.com
      Is There Any Class of wxRichTextCtrl Components which Supports FormCheckBox? can wxRichTextCtrl output a form checkbox with shape like the form checkbox in Microsoft Word 2003 ? or just with shape like in attached JPEG file?
formcheckbox.jpg

Julian Smart

unread,
Mar 19, 2013, 5:36:42 AM3/19/13
to wx-u...@googlegroups.com
Hi,

Not sure what you mean exactly - in what context would wxRTC use or
output a checkbox? The wxRTC editor doesn't support the concept of forms
unfortunately, but the latest 2.9 SVN supports fields, and you could
perhaps create a special field that responds to mouse clicks and changes
its appearance by drawing checked and unchecked images (you might need
to force a refresh after clicking).

Regards,

Julian
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
>
>

jank...@sina.com

unread,
Mar 20, 2013, 8:57:38 PM3/20/13
to wx-users
Thank you for your reply,
In my program, there is a need to display the content after a
checkbox is selected or not.Checkbox can responds to mouse is
preferred, or at least the state can be changed by program.

Thank you for your advice, I'll read the the field class code,maybe I
should use other method to show whether the content is checked(or
marked) or not.

On Mar 19, 5:36 pm, Julian Smart <jul...@anthemion.co.uk> wrote:
> Hi,
>
> Not sure what you mean exactly - in what context would wxRTC use or
> output a checkbox? The wxRTC editor doesn't support the concept of forms
> unfortunately, but the latest 2.9 SVN supports fields, and you could
> perhaps create a special field that responds to mouse clicks and changes
> its appearance by drawing checked and unchecked images (you might need
> to force a refresh after clicking).
>
> Regards,
>
> Julian
>
> On 19/03/2013 06:22, jank9...@sina.com wrote:
>
>
>
>
>
>
>
> >       Is There Any Class of wxRichTextCtrl Components which Supports
> > FormCheckBox? can wxRichTextCtrl output a form checkbox with shape
> > like the form checkbox in Microsoft Word 2003 ? or just with shape
> > like in attached JPEG file?
> > --
> > Please readhttp://www.wxwidgets.org/support/mlhowto.htmbefore posting.
Reply all
Reply to author
Forward
0 new messages