InsertAttrFont Method (LISTVIEW)


9.0, PLBCMP GUI Only

 

The InsertAttrFont method initializes the font index table for the LISTVIEW object using FONT objects. The method uses the following format:

 

[label]

{object}.InsertAttrFont

[GIVING {return}] USING [*Font1=]{font1}:

 

 

[*Font2=]{font2}:

 

 

...

 

 

[*Fontn=]{fontn}:

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that indicates the first table position modified.

font1-fontn

Optional. A FONT object that is assigned to the font table position.

Flags Affected: OVER, ZERO

Note the following:

  1. The LISTVIEW font table allows definition of up to twenty (20) fonts.

  2. If a FONT object is stored into the font table, the returned value is the first font table position that was set. If no font table positions were set, a value of zero is returned.

  3. The ZERO condition flag is set if the returned value is zero.

  4. The OVER flag is set if the {return} variable is too small to hold the returned value.

  5. For improved performance in the Application Server environment, do not specify the optional return value unless needed.

 

 

See Also: Example Code, Method Syntax, LISTVIEW Methods

 



PL/B Language Reference InsertAttrDefault Method (LISTVIEW) InsertAttrRGB Method (LISTVIEW)