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

wxErlang
Reference Manual
Version 0.99


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::wxWindow() (see module wxWindow), Id::integer()) -> wxCalendarCtrl()

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

new(Parent::wxWindow() (see module wxWindow), Id::integer(), Options::[Option]) -> wxCalendarCtrl()

Types:

Option = {date, datetime() (see module wx)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()}

create(This::wxCalendarCtrl(), Parent::wxWindow() (see module wxWindow), Id::integer()) -> bool()

create(This::wxCalendarCtrl(), Parent::wxWindow() (see module wxWindow), Id::integer(), Options::[Option]) -> bool()

Types:

Option = {date, datetime() (see module wx)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()}

setDate(This::wxCalendarCtrl(), Date::datetime() (see module wx)) -> bool()

getDate(This::wxCalendarCtrl()) -> datetime() (see module wx)

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

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

Types:

Option = {enable, bool()}

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

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

Types:

Option = {enable, bool()}

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

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

Types:

Option = {display, bool()}

setHeaderColours(This::wxCalendarCtrl(), ColFg::colour() (see module wx), ColBg::colour() (see module wx)) -> ok

getHeaderColourFg(This::wxCalendarCtrl()) -> colour() (see module wx)

getHeaderColourBg(This::wxCalendarCtrl()) -> colour() (see module wx)

setHighlightColours(This::wxCalendarCtrl(), ColFg::colour() (see module wx), ColBg::colour() (see module wx)) -> ok

getHighlightColourFg(This::wxCalendarCtrl()) -> colour() (see module wx)

getHighlightColourBg(This::wxCalendarCtrl()) -> colour() (see module wx)

setHolidayColours(This::wxCalendarCtrl(), ColFg::colour() (see module wx), ColBg::colour() (see module wx)) -> ok

getHolidayColourFg(This::wxCalendarCtrl()) -> colour() (see module wx)

getHolidayColourBg(This::wxCalendarCtrl()) -> colour() (see module wx)

getAttr(This::wxCalendarCtrl(), Day::integer()) -> wxCalendarDateAttr() (see module wxCalendarDateAttr)

setAttr(This::wxCalendarCtrl(), Day::integer(), Attr::wxCalendarDateAttr() (see module wxCalendarDateAttr)) -> ok

setHoliday(This::wxCalendarCtrl(), Day::integer()) -> ok

resetAttr(This::wxCalendarCtrl(), Day::integer()) -> ok

hitTest(This::wxCalendarCtrl(), Pos::{X::integer(), Y::integer()}) -> {WxCalendarHitTestResult, Date::datetime() (see module wx), Wd::WeekDay}

Types:

WxCalendarHitTestResult = integer()
WeekDay = integer()

See external documentation.
WxCalendarHitTestResult is one of ?wxCAL_HITTEST_NOWHERE | ?wxCAL_HITTEST_HEADER | ?wxCAL_HITTEST_DAY | ?wxCAL_HITTEST_INCMONTH | ?wxCAL_HITTEST_DECMONTH | ?wxCAL_HITTEST_SURROUNDING_WEEK
WeekDay is one of ?wxDateTime_Sun | ?wxDateTime_Mon | ?wxDateTime_Tue | ?wxDateTime_Wed | ?wxDateTime_Thu | ?wxDateTime_Fri | ?wxDateTime_Sat | ?wxDateTime_Inv_WeekDay

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

Destroys this object, do not use object again