hmCal_Add Stylesheet

hmCal_Add Stylesheet(area;reference;fontname;fontsize,fontstyle) -> error

Parameter          Type             Description
area               Longint      ->  hmCal area
reference          Longint      ->  stylesheet reference
fontname           Text         ->  fontname
fontsize           Longint      ->  fontsize
fontstyle          Longint      ->  fontstyle
error              Longint      <-  error-code

Description

With the command hmCal_Add Stylesheet you can create a new stylesheet. Into reference you put your own identification. The parameters fontname, fontsize and fontstyle sets the font properties of the stylesheet. For the parameter fontstyle you can use the pre-defined constants of 4th dimension: Plain, Bold, Italic and Underline are supported in combination. Later you can also modify stylesheets with the command hmCal_Set Stylesheet.

Example

The following example creates a stylesheet:

C_LONGINT($vl_error)

$vl_error:=hmCal_hmCal_Add Stylesheet(hmCal;1;"Arial";10;Bold+Italic)