AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Q: up-down option for DateTime - how to?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Relayer



Joined: 24 Nov 2008
Posts: 68

PostPosted: Mon Nov 24, 2008 7:41 pm    Post subject: Q: up-down option for DateTime - how to? Reply with quote

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
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Mon Nov 24, 2008 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Mon Nov 24, 2008 8:33 pm    Post subject: Reply with quote

Code:
Gui, Add,DateTime, x10 y10 w100 h20 1 vMydate2
Gui, Show,

_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Mon Nov 24, 2008 8:39 pm    Post subject: Reply with quote

thank you SKAN, added the number "1" for up/down control
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group