MX-Frame Library Send comments on this topic.
DisplayTime
MX-Developer > User Interface - MxPart > Controls > Control Properties > Design > DisplayTime

Glossary Item Box

Defines whether the time component is also displayed.

Remarks

Property specifies if the time component is also displayed in the control. If property is set to True, time component is presented in the control. Time component can also be edited. If property is set to False, only the date component is available for presentation and management. The default value for this property is True.

Option is useful in cases when a user has no need to see or enter time component. Time part can be redundant, because it is not implemented in business logic.

If property is set to True, time component is presented in a text control in which it is also possible to edit its value. The value is also displayed with an analogue clock.

Example (MxSpace)

To see the defined DisplayTime property on a control (Date) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WorkOrderManagePart.cs. Click the date control displaying the To value and open Property Window. See the value True defined in DisplayTime property.

To define DisplayTime property

  1. In Solution Explorer open MxPart component (WorkOrderManagePart) which contains control (Date) for data binding.
  2. Select the desired control (Date – To) on the canvas.
  3. Open Property Window.
  4. In section Design in DisplayTime property select the desired value (True).

NOTE: The value of the DisplayTime property is True by default therefore in order to display time in a control upper steps are not necessary by default. Use them in case when a control is configured not to display time component.

©2009 Metronik. All Rights Reserved.