RButtonDown

Description

Occurs when the right mouse button is pressed on the DataWindow control.

PowerBuilder event information

Event ID: pbm_dwnrbuttondown

Argument

Description

flags

UnsignedLong by value. The modifier keys and mouse buttons that are pressed. The flags value is the sum of the values for all the pressed keys and buttons.

Key and button values are:

  • 1 -- Left mouse button

  • 2 -- Right mouse button

  • 4 -- Shift key

  • 8 -- Ctrl key

  • 16 -- Middle mouse button

In the RButtonDown event, the right mouse button is always pressed, so 2 is always summed in the value of flags.

For information on evaluating the flags value, see Syntax 2 of MouseMove in the PowerScript Reference.

xpos

Integer by value. The distance of the pointer from the left edge of the window's workspace in pixels.

ypos

Integer by value. The distance of the pointer from the top of the window's workspace in pixels.


Return Values

There are no special outcomes for this event. The only code is:

0 -- Continue processing

See also

Clicked