MouseLeave Event - HotButton and DirectionalButton

Applies to:  HotButton Control, DirectionalButton Control
See also:  MouseHover event, MouseLeave event, HoverTime property, TrackMouse method, Event Index

Occurs when the mouse pointer leaves the client area of the window subclassed by a Subclasser object or PowerForm control, or leaves the opaque region of a Panel, HotButton, or DirectionalButton control..

Syntax:

Private Sub object_MouseLeave(ByVal Side As AkemiFlatControls.SideConstants)

The MouseLeave event syntax has these parts:

Part Description
object The name of an object in the Applies to list.
Side A value indicating which side of the window the mouse pointer is leaving by.  Side can be any one of the following values:
  • siBottom
  • siTop
  • siLeft
  • siRight
  • siChildWindow
  • siNoneOfTheAbove

Remarks:

The Side parameter must be qualified with the library name (as shown above) if both AkemiPowerPack.ocx and AkemiFlatControls are referenced by your project, because both libraries define a SideConstants type.

The SideConstants enumerated type contains the following additional values which are not used in the MouseLeave event:

  • siBottomLeft
  • siBottomRight
  • siTopLeft
  • siTopRight

If the mouse leaves via the corner of a Panel control, the MouseLeave event will be raised with Side equal to one of siBottom, siTop, siLeft, or siRight.

If the mouse leaves the Panel by entering a control contained on the Panel, the MouseLeave event will be raised with Side equal to siChildWindow.

If the mouse capture is released programatically, the MouseLeave event will be raised with Side equal to siNoneOfTheAbove.

Unlike the MouseLeave event for the Panel control, the MouseLeave event for the HotButton control and DirectionalButton control cannot be cancelled.

 

Home

Copyright and Disclaimer