Use richview, how to achieve this feature?

General TRichView support forum. Please post your questions here
Post Reply
chinabettersoft
Posts: 4
Joined: Mon Aug 02, 2010 2:34 pm

Use richview, how to achieve this feature?

Post by chinabettersoft »

The control richview insert the phrase '[Name]', you can modify 'Name', The '[]' not allowed to modify ,the 'Name' color can be define, 'the []' color can also define. when the mouse click the '[Name]' the phrase, be underlined. the mouse to move, and underscores the automatic disappearance. click the '[Name]', according to choose, you may change the 'Name'. when print,'[]' don't print.

thank you
come from china jiangsu nanjing
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I am afraid it is not possible.
Well, you can try using OnDrawStyleText event to draw '[' and ']', but there will be no spacing reserved for them...
chinabettersoft
Posts: 4
Joined: Mon Aug 02, 2010 2:34 pm

Post by chinabettersoft »

For specific characters, within a specified form, press backspace key, specific characters are erased and the cursor forward, to specific characters. through the right key to the menu could be deleted. for example, the phrase '[richview]', when the press backspace key deletes, '[]' not be deleted. if a direct input '[]' can be deleted.

If convenient for example, the best

thank you very much
Post Reply