MajSlayer420 Posted March 7, 2007 Posted March 7, 2007 Hello I need to make a GUI Control so that the user can select a time in military time(24hour format) I dont need seconds or min input, just the hours need adjusting. Anyone know how I can do this, Im lost.. I was thinking a pull down menu, but it doesnt look every nice Thanks MajSlayer420
PaulIA Posted March 7, 2007 Posted March 7, 2007 Hello I need to make a GUI Control so that the user can select a time in military time(24hour format) I dont need seconds or min input, just the hours need adjusting. Anyone know how I can do this, Im lost.. I was thinking a pull down menu, but it doesnt look every nice Thanks MajSlayer420You could modify the help file example: #include <GUIConstants.au3> GUICreate ( "My GUI get date", 200,200,800,200) $date = GUICtrlCreateDate ("1953/04/25", 10,10,50,20,$DTS_TIMEFORMAT) ; to select a specific default format $DTM_SETFORMAT = 0x1005 $style = "HH" GuiCtrlSendMsg($date, $DTM_SETFORMAT, 0, $style) GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd MsgBox(0,"Time", GUICtrlRead($date)) Auto3Lib: A library of over 1200 functions for AutoIt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now