Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXCalendar Class Reference

The Calendar Widget. More...

#include <FXCalendar.h>

Inheritance diagram for FX::FXCalendar:
FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Types

enum  {
  ID_CALENDAR = FXPacker::ID_LAST, ID_NEXTYEAR, ID_PREVYEAR, ID_NEXTMONTH,
  ID_PREVMONTH, ID_MONTH_START, ID_MONTH_END = ID_MONTH_START+12, ID_MONTH
}

Public Member Functions

long onCmdDate (FXObject *, FXSelector, void *)
long onCmdMonth (FXObject *, FXSelector, void *)
long onCmdNextYear (FXObject *, FXSelector, void *)
long onCmdPrevYear (FXObject *, FXSelector, void *)
long onCmdNextMonth (FXObject *, FXSelector, void *)
long onCmdPrevMonth (FXObject *, FXSelector, void *)
long onCmdSelectMonth (FXObject *, FXSelector, void *)
long onFwdToView (FXObject *, FXSelector, void *)
long onFwdToTarget (FXObject *, FXSelector, void *)
 FXCalendar (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Constructor.
void create ()
 Create.
virtual void enable ()
 Enable the window to receive mouse and keyboard events.
virtual void disable ()
 Disable the window from receiving mouse and keyboard events.
void setCurrentDate (FXDate date, FXbool notify=false)
 Set date.
FXDate getCurrentDate () const
 Get the current date.
void setCurrentMonth (FXint mo, FXbool notify=false)
 Set the current month; current day will be properly updated for the choosen month.
FXint getCurrentMonth () const
 Return the current month shown.
FXCalendarViewcalendarView () const
 Return calendar view control.
void setFirstDay (FXint d)
 Set the first day of the week [0 -> 6].
FXint getFirstDay () const
 Get the first day of the week [0 -> 6].
void setFrameStyle (FXuint)
 Change the Frame Style.
void setCalendarStyle (FXuint)
 Set the Calendar Style.
FXuint getCalendarStyle () const
 Get the Calendar Style.
void setBackColor (FXColor c)
 Set the back color.
FXColor getBackColor () const
 Get the back color.
void setTitleColor (FXColor c)
 Set the display color of titles.
FXColor getTitleColor () const
 Get the display color of titles.
void setTitleBackColor (FXColor c)
 Set the display color of titles.
FXColor getTitleBackColor () const
 Get the display color of titles.
void setDayColor (FXColor c)
 Set the display color of non-weekend days.
FXColor getDayColor () const
 Get the display color of non-weekend days.
void setOtherDayColor (FXColor c)
 Set the display color of non-weekend days not in the current month.
FXColor getOtherDayColor () const
 Get the display color of non-weekend days not in the current month.
void setTodayColor (FXColor c)
 Set the display color of today.
FXColor getTodayColor () const
 Get the display color of today.
void setWeekendColor (FXColor c)
 Set the display color of days in the weekend.
FXColor getWeekendColor () const
 Get the display color of days in the weekend.
void setOtherWeekendColor (FXColor c)
 Set the display color of days in the weekend not in the current month.
FXColor getOtherWeekendColor () const
 Get the display color of days in the weekend not in the current month.
void setHeaderFont (FXFont *fnt)
 Set font used by the header.
FXFontgetHeaderFont () const
 Get font used by the header.
void setCalendarFont (FXFont *fnt)
 Set font used by the calendar.
FXFontgetCalendarFont () const
 Get font used by the calendar.
virtual ~FXCalendar ()
 Destructor.

Protected Attributes

FXCalendarViewview
FXHorizontalFrameframe
FXLabelyear
FXOptionMenumonth
FXPopupmonthpopup
FXOptionmonths [12]
FXArrowButtonarrows [4]

Detailed Description

The Calendar Widget.

In addition of displaying the calendar, also provides month and year controls and optional frame.


Member Function Documentation

FXint FX::FXCalendar::getCurrentMonth ( ) const

Return the current month shown.

The month may be different than the current date if a day in a sibling month is current.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp