Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1: For controls and windows, except RichTextEdit – PB Docs 2019 – PowerBuilder Library

Syntax 1: For controls and windows, except RichTextEdit – PB Docs 2019

Syntax 1: For controls and windows, except RichTextEdit

Description

For a window, occurs when the right mouse button is pressed in an
unoccupied area of the window (any area with no visible, enabled
object). The window event will occur if the cursor is over an invisible
or disabled control.

For a control, occurs when the right mouse button is pressed on
the control.

Event ID

Event ID

Objects

pbm_rbuttondown

Windows and controls that can be placed on a
window, except RichTextEdit

Arguments

Argument

Description

flags

UnsignedLong by value (the modifier keys and mouse
buttons that are pressed).

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 an explanation of flags, see Syntax 2 of
MouseMove.

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

Long.

Return code choices (specify in a RETURN statement):

0 — Continue processing

Examples

These statements in the RButtonDown script for the window display
a pop-up menu at the cursor position. Menu4 was created in the Menu
painter and includes a menu called m_language. Menu4 is not the menu for
the active window and therefore needs to be created. NewMenu is an
instance of Menu4 (datatype Menu4):

In a Multiple Document Interface (MDI) application, the arguments
for PopMenu need to specify coordinates relative to the MDI
frame:

See also

Clicked


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x