 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Relayer
Joined: 24 Nov 2008 Posts: 68
|
Posted: Mon Nov 24, 2008 7:41 pm Post subject: Q: up-down option for DateTime - how to? |
|
|
Documentation says:
Date and Time options:
.
.
.
"1: Specify the number 1 in [u]Options[/u] to provide an up-down control to the right of the control to modify date-time values, which replaces the of the drop-down month calendar that would otherwise be available."
I assumed I would need something like:
Gui, +1
Gui, add, DateTime...
but that doesn't work. Help!
Probably very simple.
Relayer |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2212 Location: switzerland
|
Posted: Mon Nov 24, 2008 8:22 pm Post subject: |
|
|
example with datetime
| Code: | Gui,2:Add,DateTime,x10 y10 w100 h20 1 vMydate2 ,
Gui,2:add,button,x130 y40 h20 w60 gdatecalc ,GO
Gui,2:show,x10 y10 h70 w200,Test DateCalc
return
DATECALC:
Gui,2:submit,nohide
msgbox,%mydate2%
return
2Guiclose:
exitapp
|
Last edited by garry on Mon Nov 24, 2008 8:38 pm; edited 1 time in total |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Mon Nov 24, 2008 8:33 pm Post subject: |
|
|
| Code: | Gui, Add,DateTime, x10 y10 w100 h20 1 vMydate2
Gui, Show, |
_________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2212 Location: switzerland
|
Posted: Mon Nov 24, 2008 8:39 pm Post subject: |
|
|
| thank you SKAN, added the number "1" for up/down control |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|