4D v14TimePicker and TimeEntry |
||
|
4D v14
TimePicker and TimeEntry
TimePicker and TimeEntry
The TimePicker widget provides easy-to-use objects that you can use to make the most of any fields that require times to be entered or displayed. It can be used in the following forms:
In addition, each type of TimePicker can display the time in 12-hour (AM-PM) or 24-hour format. TimePicker object can be used without programming thanks to the mechanisms provided by the bound variable. However, if you want to customize the functioning of TimePicker objects, you can use the set of component methods that is provided. You can insert a TimePicker area into a form in two ways:
Then specify the name of the variable bound to the subform ("Variable Name" property in the Property List). When the form is executed, this variable will automatically contain the time specified by the user. Conversely, if you modify the value of this variable by programming, it will automatically be shown in the subform. You can also choose not to name the variable in order to benefit from the dynamic variable mechanism. Clock widgets are drawn in SVG, and therefore have a vector path allowing deformations in Application mode (in Design mode, their size is fixed):
Note that:
Note: Developers can displace this clock drawing and substitute their own creations by replacing the "clock.svg" file found at the first level of the "Resources" folder. Clocks can either display the current time dynamically, or show a static time.
For example, we want the clock to show 10:10:30: C_TIME(myvar) // myvar is the name of the widget’s variable |
PROPERTIES
Product: 4D ARTICLE USAGE
4D Widgets ( 4D v14 R2) Inherited from : TimePicker and TimeEntry ( 4D v12) |