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:

 

[label]

{object}.GetItemRect

[GIVING {return}] USING [*Index=]{index}:

 

 

[*Subitem=]{subitem}

 

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:

  1. {subitem} specifies that the rectangle is to come from a child item (column) of {index}.

  2. Upon completion, {return} will contain the specified item's bounding rectangle in pixels relative to the object's border as ttttbbbbllllrrrr Where:

  3.  

    Value

    Represents the

    tttt

    top.

    bbbb

    bottom.

    llll

    left.

    rrrr

    right.

     

  4. If {return} is too small to contain the text string, the EOS Condition Flag is set.

  5. The OVER and ZERO Condition Flags are always cleared.

 

 

See Also: Method Syntax, LISTVIEW Methods

 



PL/B Language Reference GetItemParam Method (LISTVIEW) GetItemState Method (LISTVIEW)