Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - SetReadOnly not working with SetMask
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetReadOnly not working with SetMask

 Post Reply Post Reply
Author
Message
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Topic: SetReadOnly not working with SetMask
    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
 
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2008 at 1:26am
Overriding OnSelect might be simple workaround like following
 

 virtual void OnSelect()
 {
  if(!GetReadOnly()) {
   CXTPPropertyGridItem::OnSelect();
  }
 }
 
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.172 seconds.