- Control found in a window, page or report
- Creating a Scheduler control (window and page editor)
- Describing a scheduler (window and page editor)
- The control options (window editor and page editor)
- Modes for filling a Scheduler control
Control found in a window, page or report
The Scheduler control is used to automatically display and handle schedules. It is used to manage the display of multiple resources and it is used in several applications or sites.
The display is performed:
- on a daily, weekly or montly basis,
The time period, the first day of the week and the number of days to display can be configured. These parameters can be easily defined in the control description window.
Creating a Scheduler control (window and page editor)
To create a Scheduler control
Remark: The dimensions of the control are optimized to take up the available space at the specified position. If the control size does not suit you, press Ctrl + Z: the control size will be reset to default.
- On the "Creation" tab, in the "Graphic controls" group, expand "Time" and select "Scheduler".
- Click where the control will be created in the window or page.
- The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
Describing a scheduler (window and page editor)
The control options (window editor and page editor)
The Scheduler control can be customized in the editor via the description window ("Details" tab).
The parameters of the Scheduler control are as follows:
- With buttons to change the time range: This option is used to display buttons in order for the user to scroll the different periods of the schedule. These buttons are displayed at the top left of schedule.
- Resource display mode: By default, resources are displayed in rows.
- Time display: Used to define:
- the format of the date displayed for the "day" columns (or rows) of the scheduler.
- whether the time must be displayed or not in the control.
- the format of the time displayed for the "day" columns (or rows) of scheduler.
- whether the week number must be displayed or not, as well as its format. In the format, the '%1' string corresponds to the week number. Example of format: "Wk. %1".
- Time slot: Used to define:
- the visible time period: Time period that will be displayed in the control.
- the working time period: Time period for which an appointment can be defined.
- Appointments: Used to specify the characteristics of the appointments:
- Other parameters:
- Allow direct input of an appointment: Allows the user to add an appointment directly.
The edit options via the mouse are as follows:
- Move. You can allow (or not) the user to move an appointment.
The options regarding the dimension of areas are as follows:
Most of these parameters can be modified through programming. For more details, see Properties associated with the Scheduler control
To customize the display of appointments:
- Open the Scheduler control description window.
- In the "General" tab, select the internal window used for the appointments:
- "None": the default display will be used.
- "Preset window": a preset window is automatically added to the project.
- The internal window is available in the project explorer. It can be modified in the window editor.
Caution: this internal window can only be used to customize the drawing regarding the display of appointments. Only the "Global declarations" event is executed. No other events are executed. Therefore, you cannot add buttons with a specific click code.
- You also have the ability to use any internal window of your project.
- If you are using the suggested preset window, the style options of the appointment (selected in the "Style" tag) are applied.
Modes for filling a Scheduler control
Complete examples (WINDEV): WD Schedule
Unit examples (WEBDEV): The Scheduler control
Complete examples (WEBDEV): WW_Schedule
This page is also available for…