Top
PowerCOBOL V11.0 Reference
FUJITSU Software

6.29 MouseUp Event

Description:

Generated when a mouse button is released.

The Click and DblClick events are generated after the MouseDown and MouseUp events.

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.

Note that if the focus changes, or if the active window changes (e.g. Alt + Tab key pressed), the MouseUp event may not be generated.

ComboBox

The event is generated when the Style property is "1 - DropDown" or "2 - DropDownList", and the drop down list is displayed, and the menu button is clicked (to hide the drop down list).

DriveList

The event is generated when the control loses focus and when the drop down list is displayed, and the menu button is clicked (to hide the drop down list).

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) released. 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 7 (binary 00000111), this indicates that the Shift, Ctl and Alt keys are 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".