Jump to content

Need help with GUI Control!


Recommended Posts

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

Link to comment
Share on other sites

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

You 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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...