ReadOnly #2 |
Post Reply |
Author | |
pkhach
Newbie Joined: 30 October 2007 Location: Ukraine Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 07 November 2007 at 1:28am |
Hello,
Some people already have asked this question in this forum but get no replies. Is it possible to mark the editor as 'ReadOnly' ? Thanks, KP |
|
Guybrush
Groupie Joined: 15 October 2007 Location: Germany Status: Offline Points: 13 |
Post Options
Thanks(0)
|
I Think , you must use the Notification Message "XTP_EDIT_NM_EDITCHANGING" ? Look in "BOOL CXTPSyntaxEditCtrl::CanEditDoc()" |
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
But how can i change the compelete background color ?
Jimmy |
|
Guybrush
Groupie Joined: 15 October 2007 Location: Germany Status: Offline Points: 13 |
Post Options
Thanks(0)
|
Use in the Ctrl or View:
XTPSyntaxEditPaintManager()->SetBackColor(RGB(222,222,222)); |
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Wish,
Own PaintManager for every Editor. Jimmy |
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
Own paint manager for each editor added in 11.2.1.
|
|
pkhach
Newbie Joined: 30 October 2007 Location: Ukraine Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Making ReadOnly is one of basic features that every editor must implement. KP |
|
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
|
Agree,
it should be more easy.
I will add such property, like: SetReadOnly, IsReadOnly
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Please also add a own background color in the PaintManager
m_clrBackgroundReadonly; Thanks Jimmy |
|
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 |