Hot key in developer 6i [message #289896] |
Wed, 26 December 2007 08:20 |
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 #290173 is a reply to message #290109] |
Thu, 27 December 2007 22:07 |
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.
|
|
|