Modify ↓
Opened 18 years ago
Closed 18 years ago
#127 closed Bug (No Bug)
GUICtrlCreateDate -> GUICtrlSetData wrong on Timefields
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | Cc: |
Description
Hi,
when you create a Datepicker with GUICtrlCreateDate and make it "$DTS_TIMEFORMAT" to be a timepicker, the control looks fine. GUICtrlRead works fine on it and gets the time string. But GUICtrlSetData does not work as expected.
When I try to fill the field with that function with a timestring, the result is wrong. Only when I add a Date to the Timestring, it displays the correct time:
GUICtrlSetData(Eval ( "Time1"),"2000/01/01 " & $PEA_time[1])
This is unexpected, because GUICtrlRead returns only the time.
Attachments (0)
Change History (2)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
$PEA_time="16:12"
GUICreate("title",200,50)
$time1=GUICtrlCreateDate("test",10,10,150,default,$DTS_TIMEFORMAT)
GUICtrlSetData($time1,"2000/01/01 " & $PEA_time)
GUISetState()
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
This script works as expected
Note:
See TracTickets
for help on using tickets.

It is always better to have a full repro script. That speed up analysis and avoid misinterpretation of what you really did.
Thanks for posting such script.