---
title: "GraphicClass - EventSchedulerUI"
canonical: "https://docs.cuesystem.com/space/CVCGC/450134037/GraphicClass%20-%20EventSchedulerUI"
format: markdown
---
> Macro (toc)

---

# Description

There are two graphic collection: [AluminumEventScheduler](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/449675321), [MulticolorEventScheduler](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/449019923). Both graphic collection AluminumEventScheduler and MulticolorEventScheduler have same behavior, but different graphics.

In Properties of the graphic class MulticolorEventScheduler, buttons colors may be customized.

EventSchedulerUI is programmed for Languages: Czech, English, French, German, Greek, Italian, Latvian, Polish, Portuguese, Russian, Spanish.

EventSchedulerUI is a one week planner of events. For each day you can create a plan, which contains up to 13 splitters. Each splitter may contain only one event. Plans for various days do not have to be different. At the first use, two empty plans are automatically made. One is for weekday, one is for the weekend.

![image](media://5b09033f-5687-46a1-9569-c48ed398a2d0)

# How to Use

## New plan

Press New Plan Button to create a new plan. For each day, can be used one plan.

![image](media://d619de1b-44ca-4040-b139-d6e47b69ab9e)

## Rename the plan

Press Selected plan edit box to open the keyboard. Rename the plan using the keyboard. Press ENTER on the keyboard to confirm new name.

![image](media://eb771de8-7002-49ae-a514-d8f43caa2fc4)

## Delete the plan

Press Delete Button to delete plan. Then open either DialogWindow (if the plan is used in a day - the plan cannot be deleted), or Confirm dialog box with Yes / No to delete the plan.

![image](media://d82404ee-52bc-4c35-bcd2-c4e3d58d034b)

## Select the plan

Press Next Plan Button to open the Selected Plan edit box. In Selected Plan edit box, choose a plan.

![image](media://ffecf42f-95ba-464a-b0c5-dd58d2109495)

## Creating time moments in individual plans

Splitter represents a time moment. Events are created in splitter. A time moment of the event is represented by a pair event - splitter. Press and drag one of the outmost splitters to create a new event. Drawn splitter changes color. Drag Splitter to the required time. Then the cell displays. When you click on a cell, list of events pops up. Select an Event from the list. Number of events in the list depends on the selection of events in the applet EventsScheduler, in Properties. Maximum number of splitters is 14, two of them are the outmost splitters (in time 0:00 and 24:00). For any user-made splitter in the plan and for the left outmost splitter, an event may be assigned. The maximum number of events in one plan is 13. If one of the outmost splitters changes color to red, you cannot create a new splitter (the event), because maximum number of splitters in the plan was reached.

![image](media://b619660d-6e85-4b2e-955d-32af7fd0b502)

## Event time change

Time of the event can be changed either by dragging the splitter or by clicking on the Splitter. By clicking on the splitter, TimePicker opens. Time may be changed by rolling it.

![image](media://d1f4bfa8-523d-4055-8e61-b56020367abf)

## Deleting the event in individual plans

Press and drag Splitter outside the time sector (either in front of leftmost splitter or behind the rightmost splitter).

![image](media://53285f12-3088-43dc-96f5-2d9f351327d9)

## Week days bookmarks

Bookmarks of the week days are on the top of the EventScheduler. Press the bookmark of desired week day to open the plan for the particular day. You may just view the plan or modify it.

![image](media://9cfc0a1d-95ac-4dea-b3e4-bb808c71d449)

# Properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Position |
| X | Long | 0 to screen resolution width |  | X position of left top corner<br>of object |
| Y | Long | 0 to screen resolution height |  | Y position of left top corner<br>of object |
| Width | Long | Depends on the object | Depends on<br>the object | Width of the object |
| Height | Long | Depends on the object | Depends on<br>the object | Height of the object |
| Behavior |
| Visible | Boolean | True  
False | True | Visibility of object. It tells to rendering system whether the object should be drawn on the touch panel or not. |
| Locked | Yes, No | No |  | By this property it is possible to lock position and size of object in IDE (while programming touch<br>panel, not in runtime). |
| Join |  |  |  | Not used in this object |

# Functions

The following functions are used in the EventSchedulerInterface module and is not expected to use them anywhere else in the program.

## SetPlan

This function sets plans as its own. This function must be called, when OnPlanChange by Applet EventsScheduler generated.

#### Syntax

```visualbasic
Function SetPlan(newplan As Namespace "CUE.AppletCollection.EventScheduler.1".SchedulerPlans)
```

[Description of structre of SchedulerPlans](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/448921606/Applets+-+EventsScheduler#Descriptions-of-structure)

## GetPlans

This Function returns the current plans of EventSchedulerUI.

#### Syntax

```visualbasic
Function GetPlans(ByRef plans As Namespace "CUE.AppletCollection.EventScheduler.1".SchedulerPlans) As Boolean
```

[Description of structre of SchedulerPlans](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/448921606/Applets+-+EventsScheduler#Descriptions-of-structure)

## Heartbeat

This function has to be called periodically by Applet EventsScheduler. This function must be called periodically in order to maintain EventsScheduler active.

#### Syntax

```visualbasic
Function Heartbeat()
```

# Events

The following events are used in the EventSchedulerInterface module and is not expected to use them anywhere else in the program.

## OnSchedulerChangePlan 

This event is generated when there is a change of a plan. In this process, call function of Applet EventsScheduler SetSchedulerPlan(newplans).

#### Syntax

```visualbasic
Event OnSchedulerChangePlan As Process (newplan As Namespace "CUE.AppletCollection.EventScheduler.1".SchedulerPlans)
```

[Description of structre of SchedulerPlans](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/448921606/Applets+-+EventsScheduler#Descriptions-of-structure)

## OnGetPlansAndEvents 

This event is generated in the Init (). It is used for loading the initiating data. In this process, call function of Applet EventsScheduler GetSchedulerPlansAndEvents(plans,events).

#### Syntax

```visualbasic
Event OnGetPlansAndEvents As Function (ByRef plans As Namespace "CUE.AppletCollection.EventScheduler.1".SchedulerPlans,ByRef events As Namespace "CUE.AppletCollection.EventScheduler.1".SchedulerEvent)
```

[Description of structre of SchedulerPlans and SchedulerEvent](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/448921606/Applets+-+EventsScheduler#Descriptions-of-structure)