wxCalendarCtrl

See external documentation: wxCalendarCtrl.

See external documentation: wxCalendarCtrl.

This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler

Types


wxCalendarCtrl() = wx:wx_object()

Functions


new() -> wxCalendarCtrl()

See external documentation.

new(Parent, Id) -> wxCalendarCtrl()

  • Parent = wxWindow() (see module wxWindow)
  • Id = integer()

Equivalent to new(Parent, Id, []).

new(Parent, Id, Option::[Option]) -> wxCalendarCtrl()

  • Parent = wxWindow() (see module wxWindow)
  • Id = integer()
  • Option = {date, wx_datetime() (see module wx)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()}

See external documentation.

create(This, Parent, Id) -> boolean()

  • This = wxCalendarCtrl()
  • Parent = wxWindow() (see module wxWindow)
  • Id = integer()

create(This, Parent, Id, Option::[Option]) -> boolean()

  • This = wxCalendarCtrl()
  • Parent = wxWindow() (see module wxWindow)
  • Id = integer()
  • Option = {date, wx_datetime() (see module wx)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()}

See external documentation.

setDate(This, Date) -> boolean()

  • This = wxCalendarCtrl()
  • Date = wx_datetime() (see module wx)

See external documentation.

getDate(This) -> wx_datetime() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

enableYearChange(This) -> ok

  • This = wxCalendarCtrl()

enableYearChange(This, Option::[Option]) -> ok

  • This = wxCalendarCtrl()
  • Option = {enable, boolean()}

See external documentation.

enableMonthChange(This) -> ok

  • This = wxCalendarCtrl()

enableMonthChange(This, Option::[Option]) -> ok

  • This = wxCalendarCtrl()
  • Option = {enable, boolean()}

See external documentation.

enableHolidayDisplay(This) -> ok

  • This = wxCalendarCtrl()

enableHolidayDisplay(This, Option::[Option]) -> ok

  • This = wxCalendarCtrl()
  • Option = {display, boolean()}

See external documentation.

setHeaderColours(This, ColFg, ColBg) -> ok

  • This = wxCalendarCtrl()
  • ColFg = wx_colour() (see module wx)
  • ColBg = wx_colour() (see module wx)

See external documentation.

getHeaderColourFg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

getHeaderColourBg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

setHighlightColours(This, ColFg, ColBg) -> ok

  • This = wxCalendarCtrl()
  • ColFg = wx_colour() (see module wx)
  • ColBg = wx_colour() (see module wx)

See external documentation.

getHighlightColourFg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

getHighlightColourBg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

setHolidayColours(This, ColFg, ColBg) -> ok

  • This = wxCalendarCtrl()
  • ColFg = wx_colour() (see module wx)
  • ColBg = wx_colour() (see module wx)

See external documentation.

getHolidayColourFg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

getHolidayColourBg(This) -> wx_colour4() (see module wx)

  • This = wxCalendarCtrl()

See external documentation.

getAttr(This, Day) -> wxCalendarDateAttr() (see module wxCalendarDateAttr)

  • This = wxCalendarCtrl()
  • Day = integer()

See external documentation.

setAttr(This, Day, Attr) -> ok

  • This = wxCalendarCtrl()
  • Day = integer()
  • Attr = wxCalendarDateAttr() (see module wxCalendarDateAttr)

See external documentation.

setHoliday(This, Day) -> ok

  • This = wxCalendarCtrl()
  • Day = integer()

See external documentation.

resetAttr(This, Day) -> ok

  • This = wxCalendarCtrl()
  • Day = integer()

See external documentation.

hitTest(This, Pos) -> Result

  • Result = {Res::wx_enum() (see module wx), Date::wx_datetime() (see module wx), Wd::wx_enum() (see module wx)}
  • This = wxCalendarCtrl()
  • Pos = {X::integer(), Y::integer()}

See external documentation.
Wd = ?wxDateTime_Sun | ?wxDateTime_Mon | ?wxDateTime_Tue | ?wxDateTime_Wed | ?wxDateTime_Thu | ?wxDateTime_Fri | ?wxDateTime_Sat | ?wxDateTime_Inv_WeekDay
Res = ?wxCAL_HITTEST_NOWHERE | ?wxCAL_HITTEST_HEADER | ?wxCAL_HITTEST_DAY | ?wxCAL_HITTEST_INCMONTH | ?wxCAL_HITTEST_DECMONTH | ?wxCAL_HITTEST_SURROUNDING_WEEK

destroy(This::wxCalendarCtrl()) -> ok

Destroys this object, do not use object again