MouseLeaveControl Event | |||||||||||
Applies to: PowerForm Control The MouseLeaveControl event occurs when the mouse pointer leaves a control placed in the same container as the PowerForm control. Syntax: Private Sub object_MouseLeaveControl(ctl As Object) The MouseLeaveControl event syntax has these parts:
Remarks: The MouseLeaveControl event is only raised if the control was added to the form at design time. Moving the mouse pointer away from a dynamically loaded control will not generate a MouseLeaveControl event. The MouseLeaveChild event of the Subclasser object would be better suited to that task. The MouseLeaveControl event is only raised if the if the subclassed window does not have mouse input capture, and a MouseEnterControl event was previously raised for the same control. By default, the PowerForm control will release mouse capture when the mouse pointer leaves the subclassed window or enters a child control. It is possible to override this default behaviour by cancelling the MouseLeave event. To do so, when the mouse pointer enters a child window, will disable the MouseLeaveControl event. Example:
Further examples: Mouse Roll Over Using Standard Controls
|