wx.MaskedEdit.DateTimeEdit Class Reference

Inheritance diagram for wx.MaskedEdit.DateTimeEdit:

wx.TextCtrl wx.Control wx.Window wx.EvtHandler wx.Object

List of all members.

Public Member Functions

 DateTimeEdit (Window parent, DateTime startValue)
 DateTimeEdit (Window parent, System.Drawing.Point pos, System.Drawing.Size size, WindowStyles style, DateTime?startValue, string textMask, DateTime?minValue, DateTime?maxValue, bool allowNull)
 DateTimeEdit (Window parent, int id, System.Drawing.Point pos, System.Drawing.Size size, WindowStyles style, DateTime?startValue, string textMask, DateTime?minValue, DateTime?maxValue, bool allowNull)
int GetNearest (System.Drawing.Point position)
int GetNearest (int textPosition)
void OnChar (object sender, Event evt)
void Select (int i)

Public Attributes

DateTimeValueChangedEventHandler OnValueChanged

Properties

int Count [get]
string TextMask [get]
EditField this [int i] [get]
new DateTime Value [get, set]


Detailed Description

This is a masked edit control for DateTime input. This will manage a masked input if a DateTime.

Configure the mask using the format strings

This will use string from the definition of the current culture CultureInfo.CurrentCulture.DateTimeFormat. The current wxWidgets locale does not influence this.

Constructor & Destructor Documentation

wx.MaskedEdit.DateTimeEdit.DateTimeEdit ( Window  parent,
int  id,
System.Drawing.Point  pos,
System.Drawing.Size  size,
WindowStyles  style,
DateTime?  startValue,
string  textMask,
DateTime?  minValue,
DateTime?  maxValue,
bool  allowNull 
)

CTor creating a DateTime edit.

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 the class for further remarks on this.
minValue is an optional lower bound or the input.
maxValue is an optional upper bound of the input.
allowNull indicates with true that this may return a null, i.e. that the input is optional.
style this will accept all styles that also fit wx.TextCtrl. We recomment wx.WindowStyles.BORDER_SUNKEN.
If you tell this edit to process ENTER, the ENTER key will proceed from the currently selected field to the next field.

wx.MaskedEdit.DateTimeEdit.DateTimeEdit ( Window  parent,
System.Drawing.Point  pos,
System.Drawing.Size  size,
WindowStyles  style,
DateTime?  startValue,
string  textMask,
DateTime?  minValue,
DateTime?  maxValue,
bool  allowNull 
)

CTor creating a DateTime edit.

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 the class for further remarks on this.
minValue is an optional lower bound or the input.
maxValue is an optional upper bound of the input.
allowNull indicates with true that this may return a null, i.e. that the input is optional.
If you tell this edit to process ENTER, the ENTER key will proceed from the currently selected field to the next field.

wx.MaskedEdit.DateTimeEdit.DateTimeEdit ( Window  parent,
DateTime  startValue 
)

CTor creating a DateTime edit reading a date in localized standard format.

Parameters:
startValue is an optional value that will be displayed on start.


Member Function Documentation

int wx.MaskedEdit.DateTimeEdit.GetNearest ( System.Drawing.Point  position  ) 

Returns the index of the edit field that is as near as possible to the provided window position.

int wx.MaskedEdit.DateTimeEdit.GetNearest ( int  textPosition  ) 

Returns the index of the edit field that is as near as possible to the provided text position.

void wx.MaskedEdit.DateTimeEdit.OnChar ( object  sender,
Event  evt 
)

Directly calls this method of the masked edit. Refer to MaskedEditService.OnChar().

void wx.MaskedEdit.DateTimeEdit.Select ( int  i  ) 

Select the edit field of the provided index.


Member Data Documentation

DateTimeValueChangedEventHandler wx.MaskedEdit.DateTimeEdit.OnValueChanged

This event fires after changing the value of this control.


Property Documentation

int wx.MaskedEdit.DateTimeEdit.Count [get]

Returns the number of input fields.

string wx.MaskedEdit.DateTimeEdit.TextMask [get]

Returns the text mask defining the format of the text presentation.

EditField wx.MaskedEdit.DateTimeEdit.this[int i] (  )  [get]

Returns the edit field at the provided position. Use a number between 0 and this.Count. Otherwise, this will raise exceptions. Negative numbers will count the fields from the end. So, -1 designates the last edit field.

new DateTime wx.MaskedEdit.DateTimeEdit.Value [get, set]

Get or set the value. The result may be null if this allows empt input.

Reimplemented from wx.TextCtrl.


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