GetItemAtPointer PowerScript function
Description
Gets the
handle or the index of the item under the cursor.
Controls
ListView controls, TreeView controls
Syntax
|
1 |
<span>controlname</span><span>.GetItemAtPointer</span> ( <span></span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the control whose handle |
Return Values
Long. Returns the index (ListView) or
handle (TreeView) of the item under the cursor. Returns -1 for failure.
Usage
System events that select an item in a ListView or TreeView
control, such as the Clicked event, already have an argument that
passes the index for the ListView or the handle for the TreeView.
The GetItemAtPointer function allows you to retrieve
the index or handle in user events (or system events without an index
or handle argument) for a ListView or TreeView control.
Examples
This example places the handle of a TreeView item
in a SingleLineEdit box:
|
1 |
integer li_index |
|
1 |
|
1 |
li_index= tv_1.<span>GetItematPointer</span> ( ) |
|
1 |
sle_1.text = string (li_index) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest