forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Hide Menu

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1731
Location: Space and Time

PostPosted: Tue Dec 10, 2013 5:21 pm    Post subject: Hide Menu Reply with quote

I want to have hotkeys for my app, but do not want to use the HOTKEY command. I want to use menu items with hotkeys attached, but I don't want the menu visible. Is there a way to hide a menu without using a DLL?
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Dec 11, 2013 12:05 am    Post subject: Reply with quote

From what I remember, you should be able to add a &-character to the caption of a button in front of the letter you wish to capture. Whenever the user presses ALT+letter, it should trigger the button event.
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Dec 11, 2013 12:07 am    Post subject: Reply with quote

Also see http://www.dialogscript.com/html/dlg_button.htm
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1731
Location: Space and Time

PostPosted: Wed Dec 11, 2013 1:04 pm    Post subject: Reply with quote

Yes I am aware of that though I want to use the escape key as the hot key. Without having to press the Alt key. Only way to do that without the hotkey command it using a menu.
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Dec 11, 2013 1:34 pm    Post subject: Reply with quote

How about setting the ESC up as HOTKEY whenever your program is visible, and removing the hotkey when it goes to the background?
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1731
Location: Space and Time

PostPosted: Wed Dec 11, 2013 1:49 pm    Post subject: Reply with quote

Yes that is what I did at first but after a while it seems to slow the app down. It is for work and I keep it open all day.
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1731
Location: Space and Time

PostPosted: Wed Dec 11, 2013 2:36 pm    Post subject: Reply with quote

OMG never mind.... I forgot if I use a button and call it Cancel, the Escape key is used for that button as well... duh! Smile All set now. Thanks for the help!
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group