Please enable JavaScript to view this site.

Vensim Help

The screen font lets you specify the default font for the current screen.  The SCREENFONT command should appear first after the screen definition as in:

:SCREEN WELCOME

SCREENFONT,Times New Roman|12||0-0-0|

This will set the default font to 12 point Times New Roman in black.  All partial font specifications that follow will use this font to determine the complete font specification.  For example

TEXTONLY,0,0,0,0,C||18|B|

would give 18 point bold Times New Roman text in black.

You can also use the SCREENFONT line to specify a background color for the screen.  Just follow the font's color with the R-G-B color for the screen.  For example:

SCREENFONT,Times New Roman|12||255-255-255|255-0-0|

would give a red background with white text.  You can use the special color -1--1--1 to have Vensim use the window background color set from Windows and -2--2--2 to use the button face color.  The latter of these is helpful when you are using RADIOVAR or CHECKVAR controls as in:

:SCREEN CHTEST

SCREENFONT,Arial|14|B|0-0-0|-2--2--2

TEXTONLY,"Base Quality",10,10,0,0,L

RADIO1VAR,"base quality",40,10,0,0,,[.7],Low

RADIOVAR,"base quality",60,10,0,0,,[.8],Medium

RADIOVAR,"base quality",80,10,0,0,,[.9],High

SWITCHVAR,"labor cap switch",10,40,0,0,,[0|1],\

Prevent any increase in labor late in the project.

You can specify one screen font for each screen.  Or leave it out.  If you do not specify a screen font in a screen the most recent screen font specified will be used.  Thus, by specifying the screen font for the first screen, you can set it for the whole application.

NOTE The BUTTON, CHECKVAR, LISTVAR and RADIOVAR controls will use the default Windows Font unless you specify a font for the individual controls.