Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - HOWTO: Distinguish edit change/constraint change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Distinguish edit change/constraint change

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Distinguish edit change/constraint change
    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
Back to Top
mitcheljh View Drop Down
Groupie
Groupie


Joined: 20 July 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote mitcheljh Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.