Syntax 1: For ListView and Tab controls
Description
Occurs when the user clicks the right mouse button on the ListView
control or the tab portion of the Tab control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lvnrclicked |
ListView |
|
pbm_tcnrclicked |
Tab |
Arguments
|
Argument |
Description |
|---|---|
|
index |
Integer by value (the index of the item or tab the |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
When the user clicks in the display area of the Tab control, the
tab page user object gets an RButtonDown event rather than a
RightClicked event for the Tab control.
Examples
This example for the RightClicked event of a ListView control
displays a pop-up menu when the user clicks the right mouse
button:
|
1 2 3 4 5 6 7 |
// Declare a menu variable of type m_main m_main m_lv_popmenu // Create an instance of the menu variable m_lv_popmenu = CREATE m_main // Display menu at pointerposition m_lv_popmenu.m_entry.PopMenu(Parent.PointerX(), & Parent.PointerY()) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest