![]()  | 
 
ReadOnly #2 | 
 
    Post Reply  
   | 
  
| Author | |
   
   pkhach  
   
   Newbie  
   Joined: 30 October 2007 Location: Ukraine Status: Offline Points: 12  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: ReadOnly #2Posted: 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)
      Quote   Reply
   
     Posted: 07 November 2007 at 2:39am | 
 
| 
   
    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: 516  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 November 2007 at 4:56am | 
 
| 
   
    
   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)
      Quote   Reply
   
     Posted: 07 November 2007 at 8:43am | 
 
| 
   
    
   Use in the Ctrl or View:
 
   
  XTPSyntaxEditPaintManager()->SetBackColor(RGB(222,222,222));  | 
 |
![]()  | 
 |
   
   jimmy  
   
   Senior Member  
   Joined: 11 November 2003 Location: Austria Status: Offline Points: 516  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 November 2007 at 9:32am | 
 
| 
   
    
   Wish, 
   
  Own PaintManager for every Editor. Jimmy  | 
 |
![]()  | 
 |
   
   AndreiM  
   
   Moderator Group  
   Joined: 18 August 2007 Status: Offline Points: 132  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 November 2007 at 11:04am | 
 
| 
   
    
   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)
      Quote   Reply
   
     Posted: 07 November 2007 at 4:19pm | 
 
   
   
 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)
      Quote   Reply
   
     Posted: 07 November 2007 at 5:33pm | 
 
| 
   
    
   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: 516  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 November 2007 at 5:14am | 
 
| 
   
    
   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  |