Top
PowerCOBOL V11.0 Reference
FUJITSU Software

6.7 Click Event

Description:

Generated when the left mouse button is clicked on the control or an equivalent event occurs.

CheckBox

Mouse left button is clicked on the control.

Space bar is pressed when the control has focus.

CommandButton

  1. Mouse left button is clicked on the control.

  2. Space bar is pressed when the control has focus.

  3. ENTER key is pressed when the control has focus.

  4. Button is the default (Default property is True), and the focus is not in a control that processes the ENTER key, and ENTER key is pressed.

  5. Function key set in the CommandButton property page is pressed.

  6. When Cancel is True, and the focus is not in a control that processes the ESC key, and ESC key is pressed.

Note that if UnacceptableDefault property is True, the Click event is not generated when the ENTER key is pressed.

MenuItem

Mouse left button is clicked on the control.

OptionButton

  1. Mouse left button is clicked on the control.

  2. Control receives focus.

  3. The Value property is set to True in an event procedure.

Only generated when the button enters the selected state. Not generated by a click that puts the button in the unselected state.

Tab

  1. Mouse left button is clicked on the tab (button, if Style is "1").

  2. One of the arrow keys is pressed when the focus is in the tab.

Note that the Click event is only generated when the page is changed - it is not generated if the BeforeClick event prevents the page changing.

Table

Mouse left button is clicked on the control.

The position of the cell that was clicked is in the ClickRow and ClickColumn properties.

Others

Mouse left button is clicked on the control.

Used in controls:

Animation

CheckBox

ComboBox

CommandButton

FileList

FolderList

Frame

Graph

GroupBox

Image

ListBox

ListView

MCI

OptionButton

ProgressIndicator

Slider

StaticText

Tab

Table

TextBox

TreeView

Used in objects:

Form

MenuItem

Parameters:

Form and
GroupBox

None.

Others

[VT_I4 - IndexS9(9) COMP-5]

Description of parameters:

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