2016년 12월 29일 목요일

Time picker displayed time and time picker time


I want to load a preset time in the time picker.

I can set the time to be displayed to the preset, but the actual time picker time is not set to this preset unless the accept button is clicked.

Is there a procedure to set the time picker time to a value, without clicking the accept button?

I miss the procedure "set time picker time hour/minute to"

--
You can use either of these two methods (from the documentation):

SetTimeToDisplay(number hour, number minute)
Allows the user to set the time to be displayed when the time picker opens. Valid values for the hour field are 0-23 and 0-59 for the second field.

SetTimeToDisplayFromInstant(InstantInTime instant)
Allows the instant to set the hour and minute to be displayed when the time picker opens. Instants are used in Clock, DatePicker, and TimePicker components.

-- 
The issue here is that the time displayed is not passed to Timepicker-hour/minute unless yo press the button accept in the time picker. 

Do the following test:

Open a timepicker and set the time -> time1

Set timepicker  time display to time2

Open time picker (it should display time2) but press cancel instead to accept. The timepicker hour/minute remain time1, only if you press accept the tiem change to time2

I would like to be able to set the hour/minute, to the same value that is displayed, regardless the button that is pressed.

-- 
 I think that the current function do not cover this issue, and finally I am going to use auxiliary variables to store the hour/min, 

-- 

댓글 없음:

댓글 쓰기