Double-clicking on toolbar

rbulph

Junior Contributor
Joined
Feb 17, 2003
Messages
397
I'd like to know when the user double-clicks on the gripper part of a toolbar. I can use the toolbar's doubleclick event but this only passes e as System.EventArgs, which doesn't contain the location where the user double-clicked. If he double-clicks on a disabled button then this event triggers as well, so the two actions seem to be indistinguishable. Any ideas how to just capture a double-click just on the gripper part of the toolbar?
 
If you handle the toolbar's MouseDoubleClick event, it will pass you e as MouseEventArgs.
You still need to determine if you have hit the gripper, but at least you have the mouse position.

RappyFood
 
Thanks, that solves it. Don't know why they have to have a MouseDoubleClick event as well as a DoubleClickEvent.
 
Back
Top