Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridItemNumber
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItemNumber

 Post Reply Post Reply
Author
Message
JDonovan View Drop Down
Newbie
Newbie


Joined: 29 December 2003
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote JDonovan Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridItemNumber
    Posted: 08 January 2004 at 1:34pm

Is there any easy method to disable non-numeric entry within a CXTPPropertyGridItemNumber, it would seem a natural.

 

Thanks,

 

- Jeff

 

Back to Top
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2005 at 8:33am

Jeff,

 you can disable input by using something like the following -:

CString strNoOfItemsOnDB("Number of Items on Database");

CXTPPropertyGridItemNumber *ptheItemsOnTheDatabase =new CXTPPropertyGridItemNumber(strNoOfItemsOnDB, 0);

if (ptheItemsOnTheDatabase)

{

  ptheItemsOnTheDatabase->SetReadOnly(TRUE);

}

HTH

Rich

 

Kevin.
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.