4D v14DatePicker and DateEntry |
||
|
4D v14
DatePicker and DateEntry
DatePicker and DateEntry
The DatePicker widget is an intuitive, easy-to-use object that you can use to make the most of any fields that require dates to be entered or simply represented. This widget is provided in two forms:
A DatePicker calendar is an area displaying each month as a table of days. During execution, the user can scroll through the months of the calendar both forwards and backwards by clicking on the arrow buttons. They can also use the arrow keys of the keyboard. When it is inserted into a subform, a DatePicker object can be used without programming thanks to the mechanism provided by the bound variable: you can work with the value of the variable bound with the subform object ("Variable Name" property in the Property List) in order to manage its display and entry. However, if you want to customize the functioning of the DatePicker or display it as a pop-up menu, you must use the set of component methods that is provided. You can insert a DatePicker calendar into a form in two ways:
You can manage this area without programming via the bound variable mechanism (see above). You can use a DatePicker calendar as a pop-up window. To do this, you can either:
A DateEntry type area facilitates the entry of a date in the form specified in the system preferences (for example DD/MM/YY). During execution, the buttons located to the right of the entry area are only displayed when the object has the focus. The user selects each element of the date (day, month or year) individually by clicking or hitting the Tab key and can scroll them using the numeric stepper or the arrow keys of the keyboard. The calendar icon to the right can be used to select a date from a DatePicker pop-up calendar. A DateEntry object can be used without programming thanks to the mechanism provided by the bound variable (see the "DatePicker calendar" paragraph). However, if you want to customize the functioning, you can use the set of component methods that is provided. These methods are the same as those of the DatePicker object. You can insert a DateEntry area into a form in two ways:
|
PROPERTIES
Product: 4D ARTICLE USAGE
4D Widgets ( 4D v12) |