Document marked as modified although readonly |
Post Reply |
Author | |
peerschindel
Groupie Joined: 12 July 2008 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 22 July 2008 at 8:27am |
Hi,
I hope I will have soon found out and corrected all the small issues
that make the edit control act not perfectly perfect.
When you open a file in read-only mode (e.g. in sample MDITextEditor open it and select option "Read Only" from menu),
then all actions to modify the document from the context menu
and main "Edit" menue are still ENABLED (e.g. "Paste", "Cut", "Tabify Selection", "Delete").
This itself is only a small issue.
But it becomes really annoying, that when you select e.g. "Paste" or
"Tabify selection", then the document is marked as modified via
"SetDocModified" (called from inside the XTSyntaxEdit control element).
Which in turn means, when you are asked to save, if you close the
document (and that for a read-only document which you most probably
never want to save !)
In my mind the easiest way to correct the problem would be
to correct the Update-UI-Handler for ID
ID_EDIT_UNDO,
ID_EDIT_REDO, ID_EDIT_CUT, ID_EDIT_PASTE, ID_EDIT_CLEAR, ID_EDIT_REPLACE, in "CXTPSyntaxEditView"
so that they check additionally the condition
... Enable ( .... && GetEditCtrl ().CanEditDoc ()) I mean, again, it can be workaround with/without modifying the library
source code... Maybe all this could be fixed in the next release
so that at least people after me will have a benefit from my problems.
Best regards
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |