GetItemRect Method (LISTVIEW)
PLBCMP GUI Only
The GetItemRect method retrieves the bounding rectangle for a specified item in a LISTVIEW object. The method uses the following format:
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A LISTVIEW object that is accessed.
return
Optional. A Character String that returns the item's position as described below.
index
Required. A zero-based decimal number or Numeric Variable that specifies the item or row accessed.
subitem
Required. A zero-based decimal number or Numeric Variable that specifies the sub-item number.
Flags Affected: EOS, OVER, ZERO
Note the following:
{subitem} specifies that the rectangle is to come from a child item (column) of {index}.
Upon completion, {return} will contain the specified item's bounding rectangle in pixels relative to the object's border as ttttbbbbllllrrrr Where:
|
Value |
Represents the |
|
tttt |
top. |
|
bbbb |
bottom. |
|
llll |
left. |
|
rrrr |
right. |
If {return} is too small to contain the text string, the EOS Condition Flag is set.
The OVER and ZERO Condition Flags are always cleared.
See Also: Method Syntax, LISTVIEW Methods
![]() |