hmCal_SET VIEW
hmCal_SET VIEW(area;view)
Parameter Type Description
area Longint -> hmCal area
view Longint -> hmCal view
The command hmCal_SET VIEW sets the calendar in the view, defined by parameter view. There are 7 modes:
- 1 = day view
- 2 = multi day view
- 3 = month view
- 4 = user day view
- 5 = user multi day view
- 6 = project view
- 7 = resources view
You can use also the predefinied Constants.
If the view has changed, the calendar is redrawn. The command causes an immediate redraw of the area, whereby the callback method routine releases the hmCal_UpdateAppointments event.
The command has an effect only if the view has changed. If you pass an invalid value of the parameter view, the command is ignored.
The following example indicates the monthly view:
hmCal_SET VIEW(hmCal;hmCal_MonthView)