Print Page | Close Window

ReadOnly #2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=8696
Printed Date: 06 October 2024 at 1:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReadOnly #2
Posted By: pkhach
Subject: ReadOnly #2
Date 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



Replies:
Posted By: Guybrush
Date Posted: 07 November 2007 at 2:39am

I Think , you must use the Notification Message "XTP_EDIT_NM_EDITCHANGING" ?

Look in "BOOL CXTPSyntaxEditCtrl::CanEditDoc()"


Posted By: jimmy
Date Posted: 07 November 2007 at 4:56am
But how can i change the compelete background color ?
    Jimmy



Posted By: Guybrush
Date Posted: 07 November 2007 at 8:43am
Use in the Ctrl or View:

XTPSyntaxEditPaintManager()->SetBackColor(RGB(222,222,222));



Posted By: jimmy
Date Posted: 07 November 2007 at 9:32am
Wish,

Own PaintManager for every Editor.

  Jimmy



Posted By: AndreiM
Date Posted: 07 November 2007 at 11:04am
Own paint manager for each editor added in 11.2.1.

-------------
Regards,
Andrei Melnik


Posted By: pkhach
Date Posted: 07 November 2007 at 4:19pm
Originally posted by AndreiM AndreiM wrote:

Own paint manager for each editor added in 11.2.1.


Making ReadOnly is one of basic features that every editor must implement.


KP


Posted By: AndreiM
Date Posted: 07 November 2007 at 5:33pm
Agree,
it should be more easy.
I will add such property, like: SetReadOnly, IsReadOnly


-------------
Regards,
Andrei Melnik


Posted By: jimmy
Date Posted: 08 November 2007 at 5:14am
Please also add a own background color in the PaintManager
m_clrBackgroundReadonly;

    Thanks
       Jimmy




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net