Documentation for Win32lib v0.60.6
Table of Contents

Defaults

Setting the default values that Win32lib applications use.


There are a number of values that Win32lib uses that can be changed on a per application basis. These new values are specified using the operating system's SET environment symbol command.

The symbol to use is 'w32Defaults'. This takes a comma separated list of keyword/value pairs. The keyword is delimited from the value by a colon ':' character.

FONT
Unless you explicitly specify a font for a control, the get the Win32lib default font. The default font used for text is MS Sans Serif 8-point Normal. You can change this with the Font keyword. It is followed by a list of one to three values enclosed in brackets.

Font:{ facename, size, style }
where facename is the name of the font, size is the point-size required, and style is an integer whose value is the sum of ...

    Normal    = 0
    Bold      = 1
    Italic    = 2
    Underline = 4
    Strikeout = 8
Thus to get Bold and Italic you add 1 and 2 and make the style value equal 3.

Example:

      set w32Defaults=Font:(Comic Sans MS,12,3)