Print Page | Close Window

CXTPPropertyGridItemNumber

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=342
Printed Date: 16 June 2024 at 9:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridItemNumber
Posted By: JDonovan
Subject: CXTPPropertyGridItemNumber
Date 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

 




Replies:
Posted By: Kevin6
Date 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.



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