MouseEnterControl Event | |||||||||
Applies to: PowerForm Control The MouseEnterControl event occurs when the subclassed window has captured mouse input, and the mouse pointer moves over a control placed in the same container as the PowerForm control. Syntax: Private Sub object_MouseDownControl(ctl As Object) The MouseEnterControl event syntax has these parts:
Remarks: The MouseEnterControl event is only raised if the control was added to the form at design time. Moving the mouse pointer over a dynamically loaded control will not generate a MouseEnterControl event. The MouseEnterChild event of the Subclasser object would be better suited to that task. The MouseEnterControl event is only raised if the subclassed window has captured mouse input. To enable the MouseEnterControl event, call TrackMouse in the MouseEnter event. By default, the PowerForm control will release mouse capture when the mouse pointer leaves the subclassed window or enters a child control. In order to retain mouse input capture when the mouse pointer enters a child window, cancel any MouseLeave events where Side = siChildWindow. This will disable normal processing of mouse messages by child windows, and will allow the PowerForm control to handle messages that would normally be processed by child windows. Example:
Further examples: Mouse Roll Over Using Standard Controls
|