Print Page | Close Window

SetReadOnly not working with SetMask

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=11621
Printed Date: 15 May 2024 at 3:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetReadOnly not working with SetMask
Posted By: jshan
Subject: SetReadOnly not working with SetMask
Date Posted: 28 July 2008 at 12:43pm

Hi...

CXTMaskEditT<CEdit> derived classes like "CXTPPropertyGridInplaceEdit" has no effects with SetReadOnly method.
 
So, in you customitems sample,
CCustomItemIPAddress or anything with SetMask,  SetReadOnly doesn't operate properly.
 
Regards
 
xtp 12.0.0
 



Replies:
Posted By: jshan
Date Posted: 29 July 2008 at 1:26am
Overriding OnSelect might be simple workaround like following
 

 virtual void OnSelect()
 {
  if(!GetReadOnly()) {
   CXTPPropertyGridItem::OnSelect();
  }
 }
 



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