Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » How do I detect if the data in a RichEdit was changed by user?
Re: How do I detect if the data in a RichEdit was changed by user? [message #53035 is a reply to message #53028] Fri, 14 February 2020 09:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Admittedly, the issue is that IsModified queries the whole widget tree, which I now find quite confusing. Anyway, current solution is IsModifySet.

That said, I agree that current situation is confusing, so I am changing
ResetModify -> ClearModify
ClearModify -> ClearModifyDeep
IsModifySet -> IsModified

(While this is quite a change of contract, search through all of my projects revealed that a) Modify flag is really not used that much often b) current use actually rather expects above behaviour).

All that said, this whole solution is not able to check for the situation where you change data and change it back. So maybe even better would be to actually compare original content witch current one, or its hash...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does a Ctrl may be a RichObject ?
Next Topic: how to solve WhenEnter event to RichEdit
Goto Forum:
  


Current Time: Fri Apr 26 05:41:05 CEST 2024

Total time taken to generate the page: 0.01536 seconds