MX-Frame Library Send comments on this topic.
Text
See Also
MX-Developer > User Interface - MxPart > Controls > Text

Glossary Item Box

Control is basically a single line text editor. Data source can be attached to the control, enabling the end user to manipulate with data. Build in context menu is available in the control allowing the end user to perform standard text editing operations.

These operations include:

Control can be used to display value of a field or to serve as a parameter provider. With the help of control's properties it is possible to edit value of a specific data source and to save changes directly to the database.

Control has many properties that define its appearance, design, behaviour etc.

Context Properties

Properties in this section define the appearance of the control in Personalization Directory and the behaviour of the control when in edit mode.

Property Description
Category Define the name by which the control is displayed in Personalization Directory.
Entity Defines the name of the group in which the control is located in Personalization Directory.
NavigationVisible The feature is obsolete.
TrackDirty Defines whether user interface can be closed while the control is in edit mode.

Data Properties

Properties in this section define how and which data is bound to the control.

Property Description
Adapter Defines the MxAdapter component from which data can be retrieved and used for any kind of manipulation.
DataMember Defines the scheme field of which the value is displayed in the control.
DataSourceName Defines the data source which will be used to display and manipulate data.
Parameters Defines the input parameters for any desired statement; readable or writable.
Key Define the key by which the control is uniquely represented in the system.
Scope Defines the scope for which the value is remembered.

Design Properties

Properties in this section define basic properties of the control, appearance and functionality of the control.

Property Description
Name Defines the name of the control or the component.
DefaultValue Defines the value displayed when no other value is selected by a user.
AllowNullInput Defines whether it is possible to enter null values in the control.
NullButton Defines the appearance of null button in the control.
NullText Defines the text displayed when the control has null value assigned.

NOTE: Properties described here are related exclusively to Mx Controls. For the description of other properties please see Developer Express documentation.

Example

Text control can be used as a standalone control for displaying value of a specific field in a data source. It can also serves as a parameter provider for a data source statement.

To implement Text control

  1. In Solution Explorer open the desired MxPart component and add Text control from the Toolbox on the canvas to the desired location.
  2. Select the control and open Property Window.
  3. In Adapter property select the desired adapter.
  4. In DataSourceName property select the data source containing the field whose value will be displayed.
  5. In DataMember property select the field whose value will be displayed.
  6. In Parameters property define the parameter and the statement to which the value is passed.

See Also

MxPart
Number

©2009 Metronik. All Rights Reserved.