AutoHotkey Community

It is currently May 27th, 2012, 11:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: August 26th, 2005, 4:01 pm 
Code:
  Gui, Add, DateTime, vMyDate, LongDate
  Gui, Add, DateTime, vMyTime, Time
  Gui, Show
return

GuiClose:
  ExitApp
return


Is it possible to cycle through one datetime control with the TAB Key? At the moment you just change focus between those two controls.
But when one control has the focus, you can just change one attribute (e.g. the hour, the day). When you press TAB again, the focus changes to the other control back again.

I know it's just a small thing, but I'm used to press the Tab Key to jump to the next attribute.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2005, 2:55 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Other than making the Tab key into a hotkey, I don't think it can be done because DateTime controls aren't designed to respond to Tab. However, they do respond to keys such as the arrow keys, which can be used to navigate from one date element to the next, or to change the values.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2005, 2:11 pm 
Ok, I see. But making TAB into a Hotkey is not an option. In this way I would loose the native ability of TAB to switch focus between the various GUI controls.

So I have to bite the bullet and use the arrow keys instead. ;)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2005, 4:38 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I'm not sure if it would work in this case, but you could try using ~Tab:: as a hotkey (the tilde makes the Tab keystroke pass through to the active window). If your Gui window is active, the hotkey could send Shift-Tab to go back to the previous control and then maybe send a {Right} keystroke to advance within the DateTime 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: No registered users and 2 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