Arrange Method (LISTVIEW)
PLBCMP GUI Only
The Arrange method alters the position of items within a LISTVIEW object. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A LISTVIEW object that is modified.
return
Optional. A Numeric Variable that indicates the success or failure of the method.
code
Required. A decimal number or Numeric Variable that indicates an alignment from the table below.
Flags Affected: EOS, OVER, ZERO
Note the following:
The LISTVIEW must be in icon or small icon view.
{code} is a constant as defined in PLBMETH.INC or a numeric variable indicating
one of the following actions:
|
Value |
Constant |
Arrange items … |
|
0x0 |
LVA_DEFAULT |
using the current alignment. |
|
0x1 |
LVA_ALIGNLEFT |
along the left of the list window. |
|
0x2 |
LVA_ALIGNTOP |
along the top of the list window. |
|
0x5 |
LVA_SNAPTOGRID |
to the closest grid position. |
Upon completion, {return} will
contain the status of the method as follows. $TRUE and $FALSE are defined in PLBEQU.INC.
|
Value |
Constant |
The arrangement ... |
|
0 |
$FALSE |
failed. |
|
1 |
$TRUE |
was successful. |
If the value returned is zero, the ZERO Condition Flag is set.
The OVER and EOS Flags are always cleared.
For improved performance in the Application Server environment, do not specify the optional return value unless needed.
This method is not available when using the PL/B Web Server.
See Also: Method Syntax, LISTVIEW Methods
![]() |