StatusBarLabelPanel click event not supplying button type

Docking/MDI for Windows Forms Forum

Posted 12 years ago by Chien A.
Version: 2.0.0095
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
Hi, it seems that the StatusBarLabelPanel click event is not supplying the correct button information in the MouseEventArg argument...regardless of whether it was a right or left click, the value always seems to be none...

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Chien,

The UIElement.Click event is raised from the root UIControl's (which in this case is a StatusBar) Click event. That Click event is the base WinForms Control.Click event and unfortunately doesn't pass the button that was used to raise it so we don't know that information. By the time that event is raised, the button has already been released so our check into the current button state doesn't help either. You could probably attach to the mouse button down or up events and store a flag in there as to whether the last button was the left or right one.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.