It is currently Sun Sep 15, 2019 10:59 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [Done] Form Editor #PB_Shortcut_CTRL not found
PostPosted: Sat Jul 28, 2018 2:44 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 129
Location: NL
The generated code has references to #PB_Shortcut_CTRL while it should be #PB_Shortcut_Control .


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Mon Nov 26, 2018 9:50 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13612
Location: France
Could you post your generated code please ? I can't reproduce it here


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Mon Nov 26, 2018 10:18 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3053
Location: Boston, MA
I have no problems with [Ctrl+letter]:
AddKeyboardShortcut(#MYWIN, #PB_Shortcut_Control | #PB_Shortcut_P, #MYWIN_EV_KS_CTRL_P)

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Sun Jul 07, 2019 6:36 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 129
Location: NL
Just happened to bounce on it again. It's about creating menu items. One enters Ctrl+E for the shortcut. The form designer changes that to #PB_Shortcut_Ctrl which does not exist. It's just that most programs use Ctrl + (including PureBasic itself) as description of shortcut in menu's instead of Control.

Ah it's fixed by now ;) Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Mon Jul 08, 2019 7:50 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 129
Location: NL
It's not completely fixed. CTRL is still 'translated' into #PB_Shortcut_CTRL which does not exist. The form designer should put #PB_Shortcut_Control in the generated code. Ctrl (case-sensitive) is translated correctly to the correct #PB_Shortcut_Control . Well I guess Ctrl syntax is the most used so not a big problem if one knows about it.


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Mon Jul 08, 2019 8:06 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 632
Location: France
The form designer write what you enter.
Example: Write 'Nothing + Q'
and you see:
Code:
AddKeyboardShortcut(#Window_0, #PB_Shortcut_Nothing | #PB_Shortcut_Q, #MenuItem_2)
and of course, didn't works
You must write 'control' (whatever case) in form designer to have the good shortcut

https://www.purebasic.com/documentation/window/addkeyboardshortcut.html
The above key can be combined with any of the following constants:
#PB_Shortcut_Shift
#PB_Shortcut_Control
#PB_Shortcut_Alt
#PB_Shortcut_Command

:)

_________________
English is not my native language, I use an online translator


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Tue Jul 09, 2019 3:04 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 129
Location: NL
Well it does convert Ctrt to PB_Shortcut_Control, just not CTRL which is what I bumped into.


Top
 Profile  
Reply with quote  
 Post subject: Re: Form Editor #PB_Shortcut_CTRL not found
PostPosted: Fri Aug 09, 2019 9:11 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13612
Location: France
Fixed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye