i'm writing an Assembly Editor, how do you know if the user has modify
the content ?
i can only come up with the solution by using multi-thread, backup a
temporary file, and compare the temporary file with Editor contents,
this sound a bit silly or i don't know. What is the best way to
achieve this ?
i’m writing an Assembly Editor, how do you know if the user has modify
the content ?
i can only come up with the solution by using multi-thread, backup a
temporary file, and compare the temporary file with Editor contents,
this sound a bit silly or i don’t know. What is the best way to
achieve this ?
Your message title and content don’t seem to be related?
If your using the StyledTextCtrl
There is
stc.EVT_STC_MODIFIED
stc.EVT_STC_CHANGED
The stc als has a GetModify() method.
If your using a regular TextCtrl it has an IsModified() method.
I will end my guessing as to what control your using there
Woow...Thanks a lot, i didn't know there are such methods.
i'll try it out later...Really thanks so much...
···
On Sep 25, 6:53 pm, Cody Precord <codyprec...@gmail.com> wrote:
Hello,
On Sep 25, 2009, at 5:44 PM, coffeeGT wrote:
> i'm writing an Assembly Editor, how do you know if the user has modify
> the content ?
> i can only come up with the solution by using multi-thread, backup a
> temporary file, and compare the temporary file with Editor contents,
> this sound a bit silly or i don't know. What is the best way to
> achieve this ?
Your message title and content don't seem to be related?
If your using the StyledTextCtrl
There is
stc.EVT_STC_MODIFIED
stc.EVT_STC_CHANGED
The stc als has a GetModify() method.
If your using a regular TextCtrl it has an IsModified() method.
I will end my guessing as to what control your using there