HOWTO: Distinguish edit change/constraint change |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
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 |
|
mitcheljh
Groupie Joined: 20 July 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
|
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.
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |