Print Page | Close Window

Using item data with constraints

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=2115
Printed Date: 21 November 2024 at 4:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using item data with constraints
Posted By: ssimon
Subject: Using item data with constraints
Date Posted: 14 April 2005 at 3:11pm

I would like to display a combo box within a CXTPPropertyGridItem and I would like to associate some item data (e.g., DWORD or void*) with each item I add to the combobox list. I presumed I should use GetConstraints() and AddConstraint(), but I can not find any way to associate item data with a constraint. I could maintain my own array of item data and map the constraint index to the index in the array, but if the constraints are sorted I assume the indices will become out of sync with my member array.

With an MFC CComboBox I would simply use SetItemData()/SetItemDataPtr(), but I can not find any like this at all with the propery grid. Does anyone know how I can do this? Is there a completely different approach I need to take for the property grid item? I have been unable to figure this out looking through the samples, help, and forums.

 




Replies:
Posted By: Oleg
Date Posted: 15 April 2005 at 7:49am
It was added in 9.60.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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