Print Page | Close Window

Using custom data types

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=526
Printed Date: 29 April 2024 at 4:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using custom data types
Posted By: rameo
Subject: Using custom data types
Date Posted: 15 March 2004 at 5:07am

Does anyone have any sample code on how to use the custom data types in the property grid.  I would like to add a progress bar to one of the items and would like to know if this is possible.

The product features section of the web site shows the shows screen shots of check boxes, sliders and spinners used here.  It says the sample projects show you how to use the custom data types, but none of the Visual Basic samples I have demonstrate the use of custom data types.

Many thanks...




Replies:
Posted By: SuperMario
Date Posted: 15 March 2004 at 6:07am
As of now this is included only in the MFC version.


Posted By: JamesH
Date Posted: 03 February 2005 at 12:26pm

Are there any plans to add this to the active-x control?

Specifically what I need to do is have a field for displaying and editing 3D (X,Y,Z) coordinates.  All 3 fields are doubles.  Rather than having 3 separte items in the grid for X,Y and Z I would like to have either 1 item for "Position" that works in a similar way to the color field displaying the X,Y,Z all on one line which is editable or having a "..." button that allows for editing using a custom dialog.  Alternately I could have a 2nd level of expandibility and have the Position become a 2nd level catagory that can be expanded to edit the X,Y,Z individually.

Another thing I need to do is have a way for a field to act kind of like a tri-state check box.  If multiple items are selected and their properties are the same (say a color field) then the property is displayed like normal and changing the property changes the color on both items.  If the two selected items have different colors I would like to display something like "Multiple" in the property editor BUT also allow the user to change this to a valid color.  If the property is not changed the selected objects colors will not change and they will both be different, if the field is changed both objects will have their colors set.  Is there a way to do this?

 




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