Top
PowerCOBOL V11.0 Reference
FUJITSU Software

6.28 MouseMove Event

Description:

Generated when the mouse pointer is moved over the control.

The control that receives the MouseDown event continues to receive MouseMove events until the corresponding MouseUp event - whether or not the mouse remains over the control.

ComboBox

Mouse events (e.g. Click, MouseDown etc.) are not generated when the Style property is "1 - DropDown" or "2 - DropDownList", and the drop down list is displayed.

DriveList

Mouse events (e.g. Click, MouseDown etc.) are not generated when the drop down list is displayed.

TreeView and ListView

Mouse events (e.g. Click, MouseDown etc.) are not generated when a label is being edited.

Used in controls:

Animation

CheckBox

ComboBox

CommandButton

DriveList

FileList

FolderList

Frame

Graph

GroupBox

Image

ListBox

ListView

MCI

OptionButton

ProgressIndicator

ScrollBar

Slider

StaticText

Tab

Table

TextBox

Toolbar

TreeView

Used in objects:

Form

Parameters:

Form and GroupBox

1. VT_I2 - MouseButton S9(4) COMP-5

2. VT_I2 - ShiftState S9(4) COMP-5

3. VT_I4 - PosX S9(9) COMP-5

4. VT_I4 - PosY S9(9) COMP-5

Others

1. [VT_I4 - Index S9(9) COMP-5]

2. VT_I2 - MouseButton S9(4) COMP-5

3. VT_I2 - ShiftState S9(4) COMP-5

4. VT_I4 - PosX S9(9) COMP-5

5. VT_I4 - PosY S9(9) COMP-5

Description of parameters (with constants):

Form and GroupBox

  1. MouseButton: Bit mask settings indicate the button(s) depressed. Numbering the bits 1 to 8, from least significant to most significant, the bit mapping is:
    1 - Left button(POW-MOUSE-LBUTTON)
    2 - Right button(POW-MOUSE-RBUTTON)
    3 - Middle button(POW-MOUSE-MBUTTON)

  2. ShiftState: Bit mask settings indicate the state of each of the shift keys - Shift, Ctrl and ALT. Numbering the bits 1 to 8, from least significant to most significant, the bit mapping is:
    1 - Shift key(POW-SHIFTSTATE-SHIFT)
    2 - Ctrl key(POW-SHIFTSTATE-CTRL)
    3 - Alt key(POW-SHIFTSTATE-ALT)
    For example if the parameter has a value of 4 (binary 00000100), this indicates that the Alt key is depressed.

  3. PosX: The horizontal coordinate of the mouse position relative to the top left corner of the control. The ScaleMode property of the containing control determines the units.

  4. PosY: The vertical coordinate of the mouse position relative to the top left corner of the control. The ScaleMode property of the containing control determines the units.

Others

  1. Index: When the control is part of an array, Index contains the control's index in the array.

The descriptions of the other parameters (from 2 to 5) are the same as "Form and GroupBox".