Home » Developer & Programmer » Forms » Short cut keys to access menu items
Short cut keys to access menu items [message #305957] Wed, 12 March 2008 07:26 Go to next message
shahmayur
Messages: 22
Registered: November 2007
Location: London, UK
Junior Member
Hiya

I have a query about accessing menu items in Forms 10g.

I have created a menu having a main menu as File. Now under this File menu, there are 3 menu items namely Print, Print Forms and Print Queue Manager. At runtime it shows this menu properly with only one problem. It shows underscore character beneath the beginning of every menu item. So it shows Print (having underscore character at P) and similarly for Print Forms and Print Queue Manager menu items.

To access Print menu using Keyboard, we can press Alt-F (to access File menu) and then press key P. This is fine. But we can't access other 2 menu items Print Forms and Print Queue Manager because their short cut key is also P.

Is it possible to define some other character to access these other 2 menu items ? for e.g. to access Print Forms menu item, we can define F character & for Print Queue Manager, we can define Q character.

Cheers
Mayur
Re: Short cut keys to access menu items [message #305963 is a reply to message #305957] Wed, 12 March 2008 07:42 Go to previous messageGo to next message
Flash
Messages: 34
Registered: February 2008
Member
Hi Mayur,

I guess this is a bug in Forms Menu Builder. By default it displays the first letter as the hot key. Even I faced this problem some time back with no clue.

You can try using acclerator keys.

Anybody, solutions ??

Thanks
Flash
Re: Short cut keys to access menu items [message #305966 is a reply to message #305957] Wed, 12 March 2008 07:53 Go to previous messageGo to next message
vakkalan
Messages: 20
Registered: January 2006
Location: US
Junior Member

Forms does default to the first character of the Label but I would not say that this is a bug. Like suggested before you need to set the Keyboard Accelerator under the functional menu in the item properties. Setting one of these to Q and other to F should do the trick.
Let me know when you implement this.
Harsha Vakkalanka
Re: Short cut keys to access menu items [message #305967 is a reply to message #305957] Wed, 12 March 2008 07:56 Go to previous messageGo to next message
Kaeluan
Messages: 179
Registered: May 2005
Location: Montreal, Quebec
Senior Member
you can use & (Ampersand) character in your label of the menu just before the character you want to use as shortcut key



hope this help
Re: Short cut keys to access menu items [message #305993 is a reply to message #305967] Wed, 12 March 2008 09:03 Go to previous messageGo to next message
shahmayur
Messages: 22
Registered: November 2007
Location: London, UK
Junior Member
Many thanks to all of you for replying to my post.

Harsha, implementing it using Keyboard Acclerator keys is one of the options. But the Forms documentation says that there are only 5 acclerator keys are available, Acclerator1 - Acclerator5. Moreover, it has to be done by modifying the Forms Resource file. This is a very tedious process.

But thanks to Kaeluan, your trick has worked. Using '&' key in the label does the job. I had used this thing before when I had learnt Developer-2000 years ago. But I had completely forgotten about this method.

Cheers
Mayur
Re: Short cut keys to access menu items [message #305997 is a reply to message #305957] Wed, 12 March 2008 09:22 Go to previous message
vakkalan
Messages: 20
Registered: January 2006
Location: US
Junior Member

Kaeluan is right, i forgot totally about the '&' key.
Previous Topic: needed reply immediately
Next Topic: Error in f45gen
Goto Forum:
  


Current Time: Mon Mar 10 22:22:15 CDT 2025