Print Page | Close Window

Signal to CXTPPropertyGrid to end editing

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


Topic: Signal to CXTPPropertyGrid to end editing
Posted By: DLewanda
Subject: Signal to CXTPPropertyGrid to end editing
Date Posted: 10 September 2008 at 5:51pm
I am using a CXTPPropertyGrid in conjunction with a CTreeCtrl to display properties about items in the tree.  A few of the grid items use a combo (drop-down) box along with an editable field.  If the user edits the field, but clicks on another node in the tree without hitting enter, the data is not saved for the previous node unless the user presses Enter (presumably to signal that the value has changed).  I would like programmatically send the same signal on the tree selection, to avoid requiring the user to click enter before navigating to another node in the tree.  Is this possible?  If so, please let me know.

Thanks in advance, as I have been struggling with this for days!



Replies:
Posted By: Oleg
Date Posted: 11 September 2008 at 2:24am
Hi,
How do you catch value changin event ? don't you recevie this event if you select tree ?


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


Posted By: DLewanda
Date Posted: 11 September 2008 at 8:43am
I have registered a callback for the XTPWM_PROPERTYGRID_NOTIFY message that I catch the XTP_PGN_ITEMVALUE_CHANGED event.  In the case of an editable combo box item, however, I don't believe the XTP_PGN_ITEMVALUE_CHANGED event occurs if editing the combo box edit field when the property grid loses focus.  Am I missing something?



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