SDPlusCalendar

SDPlusCalendar is a user control that can be used to create any screen that provides calendar and events functionalities.

SmartDevicesPlus provides a template that will help create and setup any screen that uses this control.

sdp_usercontrols_calendar_selecttemplate

Defining events

The user control events are configured using the SDTs 'SDPlusCalendarInfo' and 'SDPlusCalendarEntry'.

An example of how to configure events on the calendar is provided in the template.

Users can configure color for each event, and also the icon that will be used to mark that day on the calendar.

To set the icon of the event, the 'status' field must be modified.

Status:

  • 0: No Icon. In this case, color is used on the day's label. On Android, also, the text of the event is painted using the selected color.
  • 1: A 'big dot' is drawn on the day, using the selected color. On Android, this option also writes the event text first letter inside the dot.
  • 2: A 'small dot' is drawn on the day, using the selected color. This is the 'default' usage in iOS.
  • 3: Three dots are drawn on the day. Colors can not be customized.
  • 4, 5 and 5: Special icons used only in Android ('heart', 'paw' and 'conversation')

 

Also, SDPlusCalendar colors and visual style can be customized using a custom theme class.

sdp_controls_calendar_theme

Toolbox

Additionaly, the user control can be used in any SmartDevices Panel using GeneXus toolbox.

sdp_controls_toolbar