Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Mouse Events for PropertyGrid
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mouse Events for PropertyGrid

 Post Reply Post Reply
Author
Message
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: Mouse Events for PropertyGrid
    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...

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2004 at 11:50am
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.
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2004 at 12:00pm

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.

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.168 seconds.