MouseLeave Event - Panel | ||||||||||
Applies to: Panel Control See also: MouseHover event, MouseLeave event, HoverTime property, TrackMouse method, Event Index Occurs when the mouse pointer leaves the opaque region of a Panel control. Syntax: Private Sub object_MouseLeave(ByVal Side As AkemiFlatControls.SideConstants, Cancel As Boolean) The MouseLeave event syntax has these parts:
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:
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. Setting Cancel = True in response to a MouseLeave event will prevent the Panel from losing mouse input. As a consequence, the Panel will receive mouse input that would otherwise be directed at other windows (including contained controls). If the MouseLeave event is cancelled, the Panel control will continue to receive MouseLeave messages for as long as the mouse pointer remains outside Panel, or until the MouseLeave message is not cancelled.
|