wx.DateTimeCtrl Class Reference

Inheritance diagram for wx.DateTimeCtrl:

wx.Panel wx.Window wx.EvtHandler wx.Object

List of all members.

Public Member Functions

 DateTimeCtrl (Window parent, Point position, Size size, WindowStyles style, DateTime startValue, string textMask, DateTime minValue, DateTime maxValue)
 DateTimeCtrl (Window parent, int id, Point position, Size size, WindowStyles style, DateTime startValue, string textMask, DateTime minValue, DateTime maxValue)
void SetHighlightColours (Colour foreground, Colour background)
void SetHolidayColours (Colour foreground, Colour background)

Public Attributes

DateTimeValueChangedEventHandler OnValueChanged

Properties

Calendar SpecialDays [get, set]
DateTime Value [get, set]


Detailed Description

This is a combination if the wx.MaskedEdit.DateTimeEdit and the wx.CalendarCtrl. You may use this to put in full time date information with calendar support.

Constructor & Destructor Documentation

wx.DateTimeCtrl.DateTimeCtrl ( Window  parent,
int  id,
Point  position,
Size  size,
WindowStyles  style,
DateTime  startValue,
string  textMask,
DateTime  minValue,
DateTime  maxValue 
)

CTor of the control

Parameters:
startValue is an optional value that will be displayed on start.
textMask is a string containing format characters according to the class documentation, e.g. "%d". Refer to the documentation of class wx.MaskedEdit.DateTimeEdit for further remarks on this.
minValue is a lower bound or the input.
maxValue is an upper bound of the input. All other arguments follow the standard wx.NET CTors. Please note, that this control always has a value. Use wx.MaskedEdit.DateTimeEdit instead if you want to allow optional input of data.

wx.DateTimeCtrl.DateTimeCtrl ( Window  parent,
Point  position,
Size  size,
WindowStyles  style,
DateTime  startValue,
string  textMask,
DateTime  minValue,
DateTime  maxValue 
)

CTor of the control

Parameters:
startValue is an optional value that will be displayed on start.
textMask is a string containing format characters according to the class documentation, e.g. "%d". Refer to the documentation of class wx.MaskedEdit.DateTimeEdit for further remarks on this.
minValue is a lower bound or the input.
maxValue is an upper bound of the input.

All other arguments follow the standard wx.NET CTors. Please note, that this control always has a value. Use wx.MaskedEdit.DateTimeEdit instead if you want to allow optional input of data.


Member Function Documentation

void wx.DateTimeCtrl.SetHighlightColours ( Colour  foreground,
Colour  background 
)

void wx.DateTimeCtrl.SetHolidayColours ( Colour  foreground,
Colour  background 
)

This defines the colours to be used in the calendar control on holidays.


Member Data Documentation

DateTimeValueChangedEventHandler wx.DateTimeCtrl.OnValueChanged

This will be called after the value of the control changed.


Property Documentation

Calendar wx.DateTimeCtrl.SpecialDays [get, set]

Holidays that will be displayed in the calendar control.

DateTime wx.DateTimeCtrl.Value [get, set]

Read or write the value that will be displayed by this control.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads