Print Page | Close Window

HOWTO: Distinguish edit change/constraint change

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=12052
Printed Date: 22 November 2024 at 5:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Distinguish edit change/constraint change
Posted By: mgampi
Subject: HOWTO: Distinguish edit change/constraint change
Date Posted: 03 September 2008 at 6:23am
Hi;
How can I distinguish between user changed the value by entering something into the edit control vs. user selected a constraint item - perhaps in XTP_PGN_ITEMVALUE_CHANGED.
Especially if SetAutoComplete(TRUE) is set!


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: mitcheljh
Date Posted: 03 September 2008 at 8:51pm
I'm not sure if there's other ways, but when setting values programmatically, I do a SetDefaultValue() on the items after setting their value.  This sets them in a 'non-modified' state.  Also, I do the same thing when the user clicks "Apply".  Seems to work nice for me.


Posted By: mgampi
Date Posted: 04 September 2008 at 9:00am
Thanks,
but I had other requirements and so I had to solve it in a different way. I really had to distinguish whether the user entered an "A" into the edit control or he/she selected the item "A" in the list of constraints as soon as I got the XTP_PGN_ITEMVALUE_CHANGED message...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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