CXTPSyntaxEditCtrl::CanEditDoc() bug? |
Post Reply |
Author | |
awelzel
Newbie Joined: 16 April 2010 Location: Germany Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 16 April 2010 at 6:37am |
To disable editing in CXTPSyntaxEditCtrl there seem to be three methods:
So we've overwritten CXTPSyntaxEditCtrl::CanEditDoc(): BOOL CMyClass::CanEditDoc() { return FALSE; } Result: There is still a cursor and text can still be selected and copied but it can not be changed. BUT: When selecting text, this text block can be moved around using the left mouse button - which is of course a change of the text! Shouldn't CanEditDoc() avoid this behaviour as well? Using SetViewOnly() or SetReadOnly() is not an options, as this also disables the cursor, which is needed to select text. |
|
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 |