wx.MaskedEdit.MaskedEdit Class Reference

Inheritance diagram for wx.MaskedEdit.MaskedEdit:

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

List of all members.

Public Member Functions

 MaskedEdit (Window parent, string textMask, params EditField[] fields)
 MaskedEdit (Window parent, System.Drawing.Point pos, System.Drawing.Size size, WindowStyles style, string textMask, params EditField[] fields)
 MaskedEdit (Window parent, int id, System.Drawing.Point pos, System.Drawing.Size size, WindowStyles style, string textMask, params EditField[] fields)
void OnChar (object sender, Event evt)
void SelectField (int i)

Properties

int Count [get]
EditField this [int i] [get]


Detailed Description

This is a masked edit control. Define a number of instances of EditField and a string mask.

maskededit.png

Constructor & Destructor Documentation

wx.MaskedEdit.MaskedEdit.MaskedEdit ( Window  parent,
int  id,
System.Drawing.Point  pos,
System.Drawing.Size  size,
WindowStyles  style,
string  textMask,
params EditField[]  fields 
)

CTor creating a masked edit of the provided fields. Note, that textMask has to be compatible to the number of fields. If you tell this edit to process ENTER, the ENTER key will proceed from the currently selected field to the next field.

Parameters:
textMask is the text mask for the input. Like format strings, the mask contains "{0}" and similar wildcards for each fields. The mask has to provide a wildcard fo each field. Otherwise, this CTor will raise a FormatException.
fields is an array of field definitions containing an element for each input value. Note, that the provided instances will be used to hold the values. So, you may refer directly to these instances rather than to the provided indexer. Please note, that fields should be provided in the order that shall define the action on pressing HOME, END, Cursor Left, and Cursor Right.

wx.MaskedEdit.MaskedEdit.MaskedEdit ( Window  parent,
System.Drawing.Point  pos,
System.Drawing.Size  size,
WindowStyles  style,
string  textMask,
params EditField[]  fields 
)

CTor creating a masked edit of the provided fields. Note, that textMask has to be compatible to the number of fields.

Parameters:
textMask is the text mask for the input. Like format strings, the mask contains "{0}" and similar wildcards for each fields. The mask has to provide a wildcard fo each field. Otherwise, this CTor will raise a FormatException.
fields is an array of field definitions containing an element for each input value. Note, that the provided instances will be used to hold the values. So, you may refer directly to these instances rather than to the provided indexer. Please note, that fields should be provided in the order that shall define the action on pressing HOME, END, Cursor Left, and Cursor Right.

wx.MaskedEdit.MaskedEdit.MaskedEdit ( Window  parent,
string  textMask,
params EditField[]  fields 
)

CTor creating a masked edit of the provided fields. Note, that textMask has to be compatible to the number of fields.

Parameters:
textMask is the text mask for the input. Like format strings, the mask contains "{0}" and similar wildcards for each fields. The mask has to provide a wildcard fo each field. Otherwise, this CTor will raise a FormatException.
fields is an array of field definitions containing an element for each input value. Note, that the provided instances will be used to hold the values. So, you may refer directly to these instances rather than to the provided indexer. Please note, that fields should be provided in the order that shall define the action on pressing HOME, END, Cursor Left, and Cursor Right.


Member Function Documentation

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

Call this if you use this control in a grid cell editor immediately after receiving a keyboard event. This method will process this event.

Parameters:
sender The grid cell editor or another source of the event.
evt The key event
MaskedEditService.OnChar
See also:
wx.KeyEvent

void wx.MaskedEdit.MaskedEdit.SelectField ( int  i  ) 

Thsi will select the input field of the given index.

Parameters:
i Designates the index field that shall be selected.


Property Documentation

int wx.MaskedEdit.MaskedEdit.Count [get]

Number of fields.

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

Gets the field of index i.


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