Modify ↓
Opened 17 years ago
Closed 17 years ago
#127 closed Bug (No Bug)
GUICtrlCreateDate -> GUICtrlSetData wrong on Timefields
Reported by: | Beejai <bjoern@…> | 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 Changed 17 years ago by Jpm
comment:2 Changed 17 years ago by Jpm
- Resolution set to No Bug
- Status changed from new to 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
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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.