Dynamic Rich text document

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
aryajur
Experienced Solver
Experienced Solver
Posts: 69
Joined: Sat Jan 14, 2012 12:23 am

Dynamic Rich text document

Post by aryajur »

Hi,
I am looking to emulate a form which has boxes whose sizes can vary as the text in them is written. These boxes have to handle text with formatting (rich text). Is it possible and by any chance any example or tutorial of such a program? I would want to place these boxes on a white background so that it gives an impression of writing on a document. Also allowing drawing lines or objects in the background would be needed.
The specific functionality would be:

1. These boxes are on a white background and want to highlight their boundary with mouse over or they may have a visible border all the time
2. Box grows in size to accommodate text as the text fills up the box (scroll bars should not appear)
3. Would want to place images as well on the same background in different areas
4. Would want functionality to be able to drag these boxes around with a mouse on the canvas
5. Would want functionality to be able to draw lines/objects on the background

Any suggestions and help would be really welcome.

Thanks,
Milind
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: Dynamic Rich text document

Post by Manolo »

You want a very featured, not common control.
wxRichTextCtrl http://docs.wxwidgets.org/trunk/overvie ... tctrl.html may help you.

You will have to do a lot of work handling text and mouse events to achieve all those features.
Post Reply