Modify

Opened 18 years ago

Closed 18 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 by J-Paul Mesnage, 18 years ago

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.

comment:2 by J-Paul Mesnage, 18 years ago

Resolution: No Bug
Status: newclosed
#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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.