1. Sivaprakash BKR
  2. PowerBuilder
  3. Monday, 13 August 2018 07:03 AM UTC

Hello,

Pb 2017 R3

In a window, I have a hidden menu, with each items with a specified shortcuts, like Alt+K, Alt+G, Ctrl+P, Ctrl+S etc.  I don't want the menu to be visible, as the use is to trigger corresponding events only.  

When I make it visible, Alt+ combinations works fine, even though I didn't add '&' before the menu name.  Even without mentioning Alt in shortcutkey combo in properties, Alt is working.

When I make it visible = false through script, Alt+ combination is not working, but Ctrl+ combination is working fine.  

I want few menu items to work with Alt combination and few with Ctrl combination with the menu hidden.   How to accomplish this task ?

Or is it a bug that restricts the workings of Alt+, while allowing Ctrl+ to work smoothly ?

Happiness Always
BKR Sivaprakash

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 August 2018 12:45 PM UTC
  2. PowerBuilder
  3. # 1

Hi;

  Great question!

Yes by design, only CTRL+ short-cuts will work when the menus are hidden. ALT+ menu items must be visible to work. This has been PB's mode of operations going way back.

If you want to process other keyboard short-cut combinations, you'll have to trap the keyboard activity at the Window or Control level.

HTH

Regards ... Chris

Comment
  1. Sivaprakash BKR
  2. Tuesday, 14 August 2018 06:07 AM UTC
Thanks Chris for your clarifications.

Ctrl+, Ctrl+Alt+, Ctrl+Shift+ works with hidden menus. Only Alt+ is not working.

  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 14 August 2018 12:47 PM UTC
Yes, any combination that includes a CTRL+ should work OK.
  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 16 August 2018 12:25 PM UTC
I mark this as resolved, as this is not a bug, as I thought.

Thanks Chris.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.