trichview.com

trichview.support




Re: Template


Return to index


Author

Message

Andrew Chichlowski

Posted: 06/09/2004 8:52:18


Hi,


Try the following:


Implement OnItemAction event handler, react on ItemAction ==

rviaTextModifying.

When you detect that text being modified is a template "placeholder", call:


PostMessage(Form1->Handle, WM_SOME_MESSAGE, ...).


Here WM_SOME_MESSAGE is custom windows message you should create.


In the handler for WM_SOME_MESSAGE make manipulations with current item, for

example call SetCurrentItemText(...).


I found that using PostMessage in this case is necessary because

OnItemAction does not expect that you will modify text items - documentation

says that you should not change item text there.


"Hon Yuen, Ng" <hyng@[NoSpam]tm.net.my> wrote in message

news:40b1d944@support.torry.net...

> have you ever seen Microsoft Word's template? In the template there a line

> of word e.g "Click to enter Date". If user click on this sentence, the

> sentence will be deleted so that user can enter the date at that section.

> How RVE achieve that?

>

> Thanx!!!

>

>





Powered by ABC Amber Outlook Express Converter