AutoHotkey Community

It is currently May 26th, 2012, 1:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 24th, 2008, 8:41 pm 
Offline

Joined: November 24th, 2008, 7:22 pm
Posts: 73
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2008, 9:22 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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 November 24th, 2008, 9:38 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2008, 9:33 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Code:
Gui, Add,DateTime, x10 y10 w100 h20 1 vMydate2
Gui, Show,

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2008, 9:39 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
thank you SKAN, added the number "1" for up/down control


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, Google [Bot], patgenn123, SifJar and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group