SetImageList Method (TABCONTROL)


PLBCMP GUI Only, 9.4C

 

The SetImageList method assigns an IMAGELIST to a TABCONTROL object. The method uses the following format:

 

[label]

{object}.SetImageList

[GIVING {return}]:

 

 

USING [*ImageList=]{imagelist}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A TABCONTROL object that is accessed.

return

Optional. A Numeric Variable that indicates whether a previous imagelist was replaced.

imagelist

Required. A previously created IMAGELIST object that contains the images that can be assigned to the tabs.

Flags Affected: EOS, OVER, ZERO

Note the following:

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

  2. If the execution of the method replaced a previously existing imagelist, the {return} value is non-zero. If the TABCONTROL did not have an existing imagelist, the {return} value is zero.

  3. The OVER Condition Flag is set if the {return} value is too large to be stored without truncation.

  4. The EOS Condition Flag are always cleared.

  5. The SetImageList method cannot be used to remove an imagelist from a TABCONTROL object. Use the RemoveImageList method instead.

  6. This method is not available when using the PL/B Web Server.

 

 

See Also: Method Syntax, TABCONTROL Methods

 



PL/B Language Reference RemoveImageList (TABCONTROL) SetStyle Method (TABCONTROL)