Home » Developer & Programmer » Forms » Hot key in developer 6i
Hot key in developer 6i [message #289896] Wed, 26 December 2007 08:20 Go to next message
mohamed99
Messages: 8
Registered: December 2007
Location: united arab emirates
Junior Member

Dear Freieds,
i want to ask about hot key or shortcut key (Function key) for example F3,F2 and like copy ctr+c ,paste ctr+v how can i use this in developer 6i
Re: Hot key in developer 6i [message #290090 is a reply to message #289896] Thu, 27 December 2007 06:32 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
you can edit the fmrweb.res file present in the [oracle home]/forms folder to configure the shortcut keys.
Re: Hot key in developer 6i [message #290109 is a reply to message #290090] Thu, 27 December 2007 08:26 Go to previous messageGo to next message
mohamed99
Messages: 8
Registered: December 2007
Location: united arab emirates
Junior Member

Dear mintomohan,

Can You explain more of hot key ,and decribe how can i add in the form and menu please replay for me
Re: Hot key in developer 6i [message #290173 is a reply to message #290109] Thu, 27 December 2007 22:07 Go to previous message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
Please see the following documentation copied from the file fmrweb.res:

FMRWEB.RES is the key definition file for webforms. The syntax is:

JFN : JMN : URKS : FFN : URFD (whitespace ignored)

JFN = Java function number
JMN = Java modifiers number
URKS = User-readable key sequence (double-quoted)
FFN = Forms function number
URFD = User-readable function description (double-quoted)

JAVA FUNCTION NUMBER
33 = PageUp
34 = PageDown
35 = End
36 = Home
37 = LeftArrow
38 = UpArrow
39 = RightArrow
40 = DownArrow
65 - 90 = Ctrl+A thru Ctrl+Z (These will always have the control
modifier explicitly included, as well as any other
modifiers that might be used.)
112 - 123 = F1 thru F12
9 = Tab (Ctrl+I, without the control modifier)
10 = Return (Ctrl+J, without the control modifier)

JAVA MODIFIERS NUMBER
Equal to the sum of the values for the modifier keys:
0 = None
1 = Shift
2 = Control
4 = Meta
8 = Alt

FORMS FUNCTION NUMBER
The Forms function numbers match the function numbers found in a
typical Forms key binding file.

USER-READABLE STRINGS
The double-quoted strings appear when users click [Show Keys], and
are used for this purpose only. These strings can be translated as
needed. Note that the strings do not affect what actually happens
when end users press a particular key sequence.
------------------------------------------------------------------------

For example if you want to assign the shortcut Ctrl+L for listing records, add the following line in the file fmrweb.res

76 : 2 : "Ctrl+L" : 97 : "List Records"

Here 76 corresponds to "L" (A = 65 and Z = 90)
2 corresponds to "CTRL"
97 is just a unique number. (You have to give a unique number for each shortcut)
"List Records" is the user readable function description.


In the menu file, create a menu item for listing records, and write the code to list records in the menu.
In the propoerty palette of the menu item, set the Keyboard Accelerator property to List Records.
Now when you run the form, you can use the shorcut key for accessing the menu.
Previous Topic: How to administor the forms with role to user
Next Topic: PL/SQL table in forms
Goto Forum:
  


Current Time: Mon Feb 03 00:51:27 CST 2025