Min/Max for Numeric and Double items |
Post Reply |
Author | |
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 23 July 2007 at 11:42am |
Hi,
what would the best way to implement the functionality of setting a minimum and maximum value for a numeric or double property grid item? Any input outside the min/max constraints shall not be accepted. Actually the item shall behave like an item with a slider or a spin button (if the user types in a value outside the slider/spin range, it will be rejected) but I dont want to have such a button. The solution I'm thinking of is to derive on of the XTPPropertyGridInplaceEdit or the XTPGridItemNumber/Double classes. Is there another (maybe smarter) way? Thanks in advance Stefan |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You can catch XTP_PGN_ITEMVALUE_CHANGED message and update value, or XTP_PGN_EDIT_CHANGED and change value while user edit it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |