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 2: For ListView and Toolbar controls – PB Docs 2021 – PowerBuilder Library

Syntax 2: For ListView and Toolbar controls – PB Docs 2021

Syntax 2: For ListView and Toolbar controls

Description

Occurs when the user clicks within the ListView control, either on
an item or in the blank space around items.

Event ID

Event ID

Objects

pbm_lvnclicked

ListView

Arguments

Argument

Description

index

Integer by value (the index of the ListView item
the user clicked). The value of index is -1 if the user clicks
within the control but not on a specific item.

Return Values

Long.

Return code choices (specify in a RETURN statement):

0 — Continue processing

Usage

The Clicked event occurs when the user presses the mouse button.
The Clicked event can occur during a double-click, in addition to the
DoubleClicked event.

In addition to the Clicked event, ItemChanging and ItemChanged
events can occur when the user clicks on an item that does not already
have focus. BeginLabelEdit can occur when the user clicks on a label of
an item that has focus.

Using the ItemActivate event for ListView controls

You can use the ItemActivate event (with the OneClickActivate
property set to true) instead of the Clicked event for ListView
controls.

Examples

This code changes the label of the item the user clicks to
uppercase:

See also

ColumnClick

DoubleClicked

ItemActivate

ItemChanged

ItemChanging

RightClicked

RightDoubleClicked


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