ComponentOne Query 8.0
MouseMove Event

MouseMove Event

Syntax

C1QueryFrame_MouseDown (Button As Long, Shift As Long, X As Double, Y As Double)

C1QueryFrame_MouseUp (Button As Long, Shift As Long, X As Double, Y As Double)

C1QueryFrame_MouseMove (Button As Long, Shift As Long, X As Double, Y As Double)

Arguments

Button is a number that identifies the button that was pressed or released to cause the event. The Button argument is a bit field with bits corresponding to the left button (bit 0), right button (bit 1), and middle button (bit 2). These bits correspond to the values 1, 2, and 4, respectively. Only one of the bits is set, indicating the button that caused the event.

Shift is an integer that corresponds to the state of the SHIFT, CTRL, and ALT keys when the button specified in the Button argument is pressed or released. A bit is set if the key is down. The Shift argument is a bit field with the least-significant bits corresponding to the SHIFT key (bit 0), the CTRL key (bit 1), and the ALT key (bit 2). These bits correspond to the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed. For example, if both CTRL and ALT are pressed, the value of Shift is 6.

X and Y are numbers that specify the current location of the mouse pointer. They are always expressed in terms of the coordinate system of the control's container.

Description

Use a MouseDown or MouseUp event procedure to specify actions that will occur when a given mouse button is pressed or released. Unlike the Click and DblClick events, MouseDown and MouseUp events enable you to distinguish between the left, right, and middle mouse buttons. You can also write code for mouse/keyboard combinations that use the Shift, Ctrl, and Alt keyboard modifiers.

The MouseMove event is generated continually as the mouse pointer moves across the control.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback