Page 1 of 1

PostPosted: Sun Jan 01, 2006 6:53 pm
by tommyrev
I have an application (Smallvue text organizer) in which I mark my text document "modified" when the user changes anything. For an edit field, I do this in the OnChange event. Unfortunately, this event does not get fired when the user pastes in text. This can be serious, because if the document is not changed, I do not prompt the user to save when they exit. Anyone have an idea how I can handle this OnPaste event? Thanks.

PostPosted: Sun Jan 01, 2006 10:34 pm
by nmc
In my palm-apps, I compare the "old" text with the "new" one to determine any changes;
this is because the dirty-flag is set even when the user inserts a char and then deletes it afterwards and I need a correct result for syncing the data with my pc-apps.

PostPosted: Sun Jan 01, 2006 11:15 pm
by tommyrev
Thanks, but that would be a lot of work in my case, because the document has about 10 parts. Anyone know how I can know that a paste has occurred?