wxCalendarEvent(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– wxCalendarEvent πŸ’–

okay bestie, welcome to wxCalendarEvent(3), an Erlang module definition straight out of the wx fam, and it's literally the class that gets to hang out with wxCalendarCtrl 🌸 yes, that calendar. the cute little grid where you click days. she's the event object, she's the moment, she's the main character of every date you pick πŸ’…


✨ DESCRIPTION ✨

so, see: wxCalendarCtrl πŸ¦‹

this class is derived, and can use functions, from:

  • wxDateEvent
  • wxCommandEvent
  • wxEvent

that's her ancestry bestie, three whole generations of inheritance, iconic lineage honestly πŸ‘‘

wxWidgets docs: wxCalendarEvent


πŸŽ€ DATA TYPES πŸŽ€

  • wxCalendar() :: #wxCalendar{}.
  • wxCalendarEvent() :: wx:wx_object().
  • wxCalendarEventType() :: calendar_sel_changed | calendar_day_changed | calendar_month_changed | calendar_year_changed | calendar_doubleclicked | calendar_weekday_clicked.

look at all those event types, she's giving range fr fr 🌈 every single one of them is listed, no skips, no cap.


πŸ”₯ FUNCTIONS πŸ”₯

  • getDate(This) -> wx:wx_datetime() when This :: wxCalendarEvent().

Returns the date. periodt πŸ’– that's it, that's the function, she gives you the date.

  • getWeekDay(This) -> wx:wx_enum() when This :: wxCalendarEvent().

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

lowkey important bestie: it doesn't make sense to call this function in other handlers. like, genuinely, don't. she will not have the info you want πŸ™ˆ it's a EVT\_CALENDAR\_WEEKDAY\_CLICKED-handler-only kind of relationship, iykyk.

that's the whole page, and honestly? short and slay 🫢 go build a calendar, you're gonna eat. signing off with love from Ericsson AB, this is wx 2.6, date night edition πŸŽ€β­ bye bestie! πŸ’œ

πŸ“¦ where this page comes from