MX-Frame Library Send comments on this topic.
Image
See Also
MX-Developer > Data Access Layer - MxAdapter > Designing Data Source > Schema > Designing a Field > Editors > Image

Glossary Item Box

Editor consists of a preview window and a menu. With the editor it is possible to import images of several different types such as bmp, jpg, gif, etc.

The appearance and the behaviour of the Image editor can be defined with its properties:

Property Description
FormatString Defines the format in which the text will be displayed.
NullText Defines the string that is displayed if the value of a field is missing or null.
Sizemode Defines the appearance of the displayed image.
AllowNullInput If property is set to True, null value can be entered in the editor.
ShowMenu If property is set to True, menu will be visible in the editor and is accessible with right click.

Example (MxSpace)

To see the implementation of the Image editor in MxSpace application click Code Lists -> Customers. See that column (Image) can be edited with the image editor.

To implement an Image editor on a field

  1. Open appropriate adapter (CustomerAdapter) in Solution Explorer.
  2. Expand the desired field (Image) in the appropriate data source schema (Customer).
  3. Click Editor node and select ImageEditor from a list of editors in the Available Editors section on the right.
  4. Set AllowNullInput property to True.

The picture of a record is visible in edit mode. Picture can be reloaded, saved, cut or copied with a menu. User can access menu with a right click on the editor. 

See Also

MxAdapter
Editors

©2009 Metronik. All Rights Reserved.