SetColResizeFlag Method (LISTVIEW)


9.1A, PLBCMP GUI Only

 

The SetColResizeFlag method stores a value that indicates whether a specified column in a LISTVIEW object can be resized by an end-user's sizing action. The method uses the following format:

 

[label]

{object}.SetColResizeFlag

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

 

 

[*Flag=]{flag}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that receives a value to indicate the success or failure for the method.

index

Required. A zero-based decimal number or Numeric Variable that specifies the column accessed.

flag

Required. A zero-based decimal number or Numeric Variable that specifies new column resize state.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The {index} value is zero-based. When the value is zero to thiry-one inclusive, {index} indicates the column to be set. If the {index} value is a minus one (-1) value, the method changes the flag setting for all columns.

  2. If the value of {flag} is zero, it indicates the column specified by {index} cannot be resized by the user. Any other value enables resizing.

  3. Upon completion, {return} is set to zero when the {index} value is invalid. Otherwise, the {return} value is set to one to indicate that the resize flag was changed.

  4. If the value returned is zero, the ZERO Condition Flag is set.

  5. If {return} is too small to contain the value, the OVER Condition Flag is set.

  6. The EOS Condition Flag is always cleared.

 

 

See Also: Method Syntax, GetColResizeFlag Method, LISTVIEW Methods

 



PL/B Language Reference SaveXMLToDim Method (LISTVIEW) SetColumnFormat Method (LISTVIEW)