Time (C): Difference between revisions
Jump to navigation
Jump to search
Created page with "file:Time.jpg '''Description''' The Time control allows the input of a time. The result is returned as a string in ''value''. When the control is selected at runtime, a..." |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[file:Time.jpg]] | [[file:Time.jpg]] | ||
== Description == | |||
The Time control allows the input of a time. The result is returned as a string in ''value''. | The Time control allows the input of a time. The result is returned as a string in ''value''. | ||
Line 11: | Line 11: | ||
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick. | To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick. | ||
== Properties == | |||
Standard [[properties|properties]] are supported, plus: | Standard [[properties and methods|properties]] are supported, plus: | ||
{| class = "wikitable" | {| class = "wikitable" | ||
Line 22: | Line 22: | ||
|} | |} | ||
== Events == | |||
Standard [[events|events]] are supported, | Standard [[events|events]] are supported, | ||
== Example == | |||
<pre> | <pre> | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 37: | Line 37: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[date| | [[date|Date]], [[datetime|DateTime]], [[month|Month]] | ||
[[Category:Language Reference]] | |||
[[Category:Controls]] | |||
[[Category:General]] |
Latest revision as of 19:34, 28 February 2013
Description
The Time control allows the input of a time. The result is returned as a string in value.
When the control is selected at runtime, a special month picker is displayed.
It is supported starting with iOS 5. It is not supported on Android at this time.
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.
Properties
Standard properties are supported, plus:
value | The time value of the control.
To set the time, use format 09:14 PM. |
Events
Standard events are supported,
Example
Output
(value is set to “2:09 PM”)