hmCal_Apply Stylesheet
hmCal_Apply Stylesheet(area;reference;type1;type2) -> error
Parameter Type Description
area Longint -> hmCal area
reference Longint -> stylesheet-id
type1 Longint -> type 1
type2 Longint -> type 2
error Longint <- error-code
The command hmCal_Apply Stylesheet sets an existing stylesheet for several objects. If you pass a 0 as the parameter reference, all objects are set to the standard font. There are the following objects, which can be set by a stylesheet:
If you pass a 1 as the parameter type1 the stylesheet is applied to the appointment header. In parameter type2 you can pass the appointment-id, or a 0 for all appointments.
If you pass a 2 as the parameter type1 the stylesheet is applied to the appointment description. In parameter type2 you can pass the appointment-id, or a 0 for all appointments.
If you pass a 3 as the parameter type1 the stylesheet is applied to all descriptions of the calendar (time/column descriptions). The parameter type2 is always 0.
If you pass a 4 as the parameter type1 the stylesheet is applied to the header of the month view. The parameter type2 is always 0.
This type is unused. If you want to change user descriptions, you can use type 7 with the column reference -1.
If you pass a 6 as the parameter type1 the stylesheet is applied to the header of the column. Type2 defines the column reference or 0 for all columns.
If you pass a 7 as the parameter type1 the stylesheet is applied to the columntext. Type2 defines the column reference or 0 for all columns.
If you pass a 8 as the parameter type1 the stylesheet is applied to the hours of the time line. The parameter type2 is always 0.
If you pass a 9 as the parameter type1 the stylesheet is applied to a cell. It only work for views with columns. The parameter type2 is the column ID. type3 is the cell id: appointment or user id; depending of the view. For this selector you have to use hmCal_Apply Stylesheet Ex!
If you pass a 10 as the parameter type1 the stylesheet is applied to the user header. It works in the user-day-view and the day-user view.
If you pass a 11 as the parameter type1 the stylesheet is applied to the date header.
If you pass a 12 as the parameter type1 the stylesheet is applied to the working hours record. You have to pass the working hours record reference in the parameter type2 or 0 to apply to all working hours.
If you pass a 13 as the parameter type1 the stylesheet is applied to label text of the current time indicator.
If you pass a 14 as the parameter type1 the stylesheet is applied to the time line.
The following example creates a new stylesheet and sets the month header in the month view:
C_LONGINT($vl_error)
$vl_error:=hmCal_Add Stylesheet (hmCal;1;"Arial";20;Bold)
$vl_error:=hmCal_Apply Stylesheet (hmCal;1;4;0)