4D v16.3

Widgets

Home

 
4D v16.3
Widgets

Widgets  


 

Adds a calendar associated with a Date variable, which can be configured in order to specify holidays, a date span, and so on.

Sample code is provided in its object method. You can configure it using the commands provided for the Date picker widget.

Here is the calendar as it appears in the form:

For more information about DatePicker widget commands, refer to DatePicker.

Note: Initially, the Date picker, Pop-up Date and Date entry objects all share the same Date variable and will display matching dates when used on the same form.

Adds a pop-up area used to display a calendar for selecting dates. Dates selected are assigned directly to the Date variable associated with this area.

Sample code is provided in its object method. You can configure it using the commands provided for the Date picker widget.

Here is how it appears in the form:

For more information about DatePicker widget commands, refer to DatePicker.

Note: Initially, the Date picker, Pop-up Date and Date entry objects all share the same Date variable and will display matching dates when used on the same form.

Adds a data entry area with three separate fields for entering the day, month and year, respectively. You can also configure it to specify an enterable span of dates.

Sample code is provided in its object method. You can configure it using the commands provided for the Date picker widget.

Here is a date entry area when the form is in use:

For more information about DatePicker widget commands, refer to DatePicker.

Note: Initially, the Date picker, Pop-up Date and Date entry objects all share the same Date variable and will display matching dates when used on the same form.

           

Adds a pop-up area used to enter a time. You can configure min and max values as well as the intervals used.

Sample code is provided in its object method. You can configure it using the commands provided for the Time picker widget.

Here are the different time pickers available in a form:

For more information about TimePicker widget commands, refer to TimePicker.

       

Adds a time entry area with three separate fields for entering the hour, minute and second, respectively. You can also configure it to specify an enterable span of times.

Sample code is provided in its object method. You can configure it using the commands provided for the Time picker widget.

Here are the time entry areas available in a form:

For more information about TimePicker widget commands, refer to TimePicker.

   

Adds a time display area (clock or LCD) which can display a static time or a functioning clock, depending on the type of associated variable. 

   

Sample code is provided in each object method to demonstrate different display options. You can also configure it using the commands provided for the Time picker widget.

   

When you declare the associated variable as a specific time in the object method, this time is displayed as a static object.

To display a dynamic time, you must declare the variable as a longint. When you set its value to “0”, the clock or LCD displays the current time.

You can set other values (positive or negative) in order to shift the time displayed accordingly. This value is expressed in seconds, so passing “3600” shifts the time displayed ahead one hour, for example, and passing “-1800” shifts the time displayed back by a half hour.

For more information about TimePicker widget commands, refer to TimePicker.



See also 

Overview and Summary table

 
PROPERTIES 

Product: 4D
Theme: Library objects

 
HISTORY 

 
ARTICLE USAGE

4D Design Reference ( 4D v16)
4D Design Reference ( 4D v16.1)
4D Design Reference ( 4D v16.3)