Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 1.7


Expand All
Contract All

Table of Contents

wxCalendarCtrl

MODULE

wxCalendarCtrl

MODULE SUMMARY

See external documentation: wxCalendarCtrl.

DESCRIPTION

See external documentation: wxCalendarCtrl.

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

DATA TYPES

wxCalendarCtrl()

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new() -> wxCalendarCtrl()

new(Parent, Id) -> wxCalendarCtrl()

Types:

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

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

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

Types:

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()}

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

Types:

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

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

Types:

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()}

setDate(This, Date) -> boolean()

Types:

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

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

Types:

This = wxCalendarCtrl()

enableYearChange(This) -> ok

Types:

This = wxCalendarCtrl()

This function is deprecated: deprecated function not available in wxWidgets-2.9 and later

Equivalent to enableYearChange(This, []).

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

Types:

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

This function is deprecated: deprecated function not available in wxWidgets-2.9 and later

See external documentation.

enableMonthChange(This) -> ok

Types:

This = wxCalendarCtrl()

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

Types:

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

enableHolidayDisplay(This) -> ok

Types:

This = wxCalendarCtrl()

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

Types:

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

setHeaderColours(This, ColFg, ColBg) -> ok

Types:

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

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

Types:

This = wxCalendarCtrl()

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

Types:

This = wxCalendarCtrl()

setHighlightColours(This, ColFg, ColBg) -> ok

Types:

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

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

Types:

This = wxCalendarCtrl()

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

Types:

This = wxCalendarCtrl()

setHolidayColours(This, ColFg, ColBg) -> ok

Types:

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

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

Types:

This = wxCalendarCtrl()

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

Types:

This = wxCalendarCtrl()

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

Types:

This = wxCalendarCtrl()
Day = integer()

setAttr(This, Day, Attr) -> ok

Types:

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

setHoliday(This, Day) -> ok

Types:

This = wxCalendarCtrl()
Day = integer()

resetAttr(This, Day) -> ok

Types:

This = wxCalendarCtrl()
Day = integer()

hitTest(This, Pos) -> Result

Types:

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