hmCal_SET COLOR
hmCal_SET COLOR(area;type1;type2;red;green;blue)
Parameter Type Description
area Longint -> hmCal area
type1 Longint -> object type
type2 Longint -> reference or 0
red Longint -> red color component
green Longint -> green color component
blue Longint -> blue color component
With the command hmCal_SET COLOR you can set all colors of a hmCal area. The parameter type1 defines the object type. The parameter type2 is depending on the object type. It's a reference or a value of 0. You must set the color in three components red, green and blue. All color components are 16 bit values. If you pass in one of the three color components the value of -1, the standard color is used.
Notice: Some selectors need a type3. Please call the command hmCal_SET COLOR EX instead.
The following object types are valid:
- 1 background, type2 is always 0
- 2 working hours, type2 is always 0
- 3 selection color of appointments, type2 is always 0
- 4 background of new appointments, type2 is always 0
- 5 foreground of new appointments, type2 is always 0
- 6 headertext color of new appointments, type2 is always 0
- 7 descriptiontext color of new appointments, type2 is always 0
- 8 alternative background in project view, type2 is always 0
- 9 relation color, type2 is always 0
- 10 description color, type2 is always 0
- 11 hourline color, type2 is always 0
- 12 halfhourline color, type2 is always 0
- 13 background of an appointment, type2 is the reference of the appointment or 0 for all appointments
- 14 foreground of an appointment, type2 is the reference of the appointment or 0 for all appointments
- 15 headertext of an appointment, type2 is the reference of the appointment or 0 for all appointments
- 16 descriptiontext of an appointment, type2 is the reference of the appointment or 0 for all appointments
- 17 userbackground, type2 is the reference of the user or 0 for all users
- 18 column background, type2 is the reference of the column or 0 for all columns
- 19 column text, type2 is the reference of the column or 0 for all columns
- 20 column header text, type2 is the reference of the column or 0 for all columns
- 21 current time line, type2 is always 0
- 22 background of an appointment (current bar/only project view), type2 is the reference of the appointment or 0 for all appointments
- 23 foreground of an appointment (current bar/only project view), type2 is the reference of the appointment or 0 for all appointments
- 24 headertext of an appointment (current bar/only project view), type2 is the reference of the appointment or 0 for all appointments
- 25 descriptiontext of an appointment (current bar/only project view), type2 is the reference of the appointment or 0 for all appointments
- 26 cell textcolor, type2 is the reference of the column and type3 is the reference of the cell. To pass the parameter type3 you must call the command hmCal_SET COLOR EX instead.
- 27 cell backgroundcolor, type2 is the reference of the column and type3 is the reference of the cell. To pass the parameter type3 you must call the command hmCal_SET COLOR EX instead.
- 28 calendar-framecolor, type2 is always 0
- 29 column-line-color, type2 is always 0
- 30 day line color in the project- and user-multi-day-view, type2 is always 0
Notice: You can use predefined Constants!