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
Dynamic Rich text document
Re: Dynamic Rich text document
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.
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.