Mouse Events for PropertyGrid |
Post Reply |
Author | |
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
Posted: 03 March 2004 at 11:33am |
The PropertyGrid does not currently expose any events for MouseDown, MouseMove, or MouseUp. Not having MouseUp makes it difficult to display Context Menus. Can some of these be added to the next PropertyGrid release? A HitTest property would also be nice to determine what a user clicked on. Looking forward to the next release... |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Right now you can tell what a user clicked on by using the
SelectionChanged event, you could set a tag value for each item, or use
the cation of the item to determine what was clicked and how to respond
to it. Everything else would be nice additions.
|
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
I wasn't very clear on my reason for needed to know what a user clicked on. Since the PropertyGrid doesn't provide a MouseUp event, I'm subclassing the WM_RBUTTONUP command to detect when a user right-clicks on the control. Since all I get are the x-y coordinates of the click, I don't know which item the user clicked on. Right-clicking an item doesn't change the selection, so using 'SelectionChanged' doesn't help in this situation. If there was a HitTest property to determine the item corresponding to the x-y coordinates, I'd be set. Ideally, I would like for a right-click to change the selection AND fire the popup event. Right now, I'm stuck with just providing the popup and hoping the user changes their selection before right-clicking. |
|
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 |