Chapter Contents

Previous

Next
Extended Text Entry: _setFont

Extended Text Entry: _setFont



Assigns a font for the text


Syntax
Details
Example

Syntax

CALL NOTIFY (ext_text_name, '_setFont', font-list-id);

Argument Type Description
font-list-id
N specifies the identifier of an SCL list that contains the font information


Details

The value passed to the _setFont method can come from the value of a font selector widget, or from a _getFont method in a widget which uses a font list (such as the extended text entry itself). The font list must be in the format returned by the FONTSEL() function in SCL. Pass in an empty list, or 0, to use the default SAS font.


Example

The CALL NOTIFY statement in the following example sets the font for obj1 to the values defined in the list font1:

init:
   fontl=makelist();
   setnitemn(fontl,2,'style');
   setnitemn(fontl,11,'weight');.he
   call notify('obj1','_set_font_',fontl);
return;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.