---
name: "wxCalendarEvent"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/wxCalendarEvent"
---

# wxCalendarEvent(3erl)

Functions for wxCalendarEvent class

## NAME

wxCalendarEvent - Functions for wxCalendarEvent class

## DESCRIPTION

The *wxCalendarEvent* class is used together with *wxCalendarCtrl*.

See: *wxCalendarCtrl*

This class is derived (and can use functions) from: *wxDateEvent* *wxCommandEvent* *wxEvent*

wxWidgets docs: wxCalendarEvent

## DATA TYPES

```
wxCalendarEvent() = wx:wx_object()
```

```
wxCalendar() =
    #wxCalendar{type = wxCalendarEvent:wxCalendarEventType(),
                wday = wx:wx_enum(),
                date = wx:wx_datetime()}
```

```
wxCalendarEventType() =
    calendar_sel_changed | calendar_day_changed |
    calendar_month_changed | calendar_year_changed |
    calendar_doubleclicked | calendar_weekday_clicked
```

## EXPORTS

```
getWeekDay(This) -> wx:wx_enum()
```

Types:

This = wxCalendarEvent()\

Returns the week day on which the user clicked in *EVT\_CALENDAR\_WEEKDAY\_CLICKED* handler.

It doesn't make sense to call this function in other handlers.

```
getDate(This) -> wx:wx_datetime()
```

Types:

This = wxCalendarEvent()\

Returns the date.
