Is it possible to use the tab key within input controls? I would like to tab from Date input to my Time input, but once in time, the next time I hit tab key it would take me to minutes within the time control opposed to the next control (OK button)
Any help or hints would be greatly appreciated!
#Include <GuiDateTimePicker.au3>
#include <GUIConstants.au3>
TimeInput()
Func TimeInput()
$tForm = GUICreate("Select Date/Time", 175, 175,-1,-1)
$tDate = GUICtrlCreateDate(@YEAR & "/" & @MON & "/" & @MDAY, 10, 10, 125, 20)
;select a specific default format
$DTM_SETFORMAT_ = 0x1032 ; $DTM_SETFORMATW
$style = "yyyy/MM/dd"
GUICtrlSendMsg($tdate, $DTM_SETFORMAT_, 0, $style)
$tTime = GuiCtrlCreateDate("", 10, 50, 100, 20, $DTS_TIMEFORMAT )
$tOK = GUICtrlCreateButton("OK", 10, 120, 75, 25)
GUISetState(@SW_SHOW)
While 1
$tmsg =GUIGetMsg()
If $tmsg = $GUI_EVENT_CLOSE Then
MsgBox(0,'',"Application aborted")
Exit
EndIf
Switch $tmsg
Case $GUI_EVENT_CLOSE
MsgBox(0,'',"Application aborted")
Exit
Case $tOK
$tDate = GUICtrlRead($tDate)
ExitLoop
EndSwitch
WEnd
EndFunc