Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - ReadOnly #2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReadOnly #2

 Post Reply Post Reply
Author
Message
pkhach View Drop Down
Newbie
Newbie
Avatar

Joined: 30 October 2007
Location: Ukraine
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote pkhach Quote  Post ReplyReply Direct Link To This Post Topic: ReadOnly #2
    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
Back to Top
Guybrush View Drop Down
Groupie
Groupie


Joined: 15 October 2007
Location: Germany
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guybrush Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 2:39am

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

Look in "BOOL CXTPSyntaxEditCtrl::CanEditDoc()"
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 4:56am
But how can i change the compelete background color ?
    Jimmy

Back to Top
Guybrush View Drop Down
Groupie
Groupie


Joined: 15 October 2007
Location: Germany
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guybrush Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 8:43am
Use in the Ctrl or View:

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

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 9:32am
Wish,

Own PaintManager for every Editor.

  Jimmy

Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 11:04am
Own paint manager for each editor added in 11.2.1.
Back to Top
pkhach View Drop Down
Newbie
Newbie
Avatar

Joined: 30 October 2007
Location: Ukraine
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote pkhach Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndreiM View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 18 August 2007
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndreiM Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 5:33pm
Agree,
it should be more easy.
I will add such property, like: SetReadOnly, IsReadOnly
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2007 at 5:14am
Please also add a own background color in the PaintManager
m_clrBackgroundReadonly;

    Thanks
       Jimmy

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.