How do I capture what key has been pressed by user [message #269215] |
Fri, 21 September 2007 03:46  |
anisam10674
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
When a form is active, how do I capture which key was pressed by the user and store that ascii value in a variable?
e.g. Suppose the cursor is placed in a text item. On the key-others trigger I want to capture which key has pressed by the user and store that value in a variable. This will enable me to format the text item. Like if the user presses <ctrl-B> form will set the text inside the text-box to bold characters and like wise other operations...
|
|
|
|
Re: How do I capture what key has been pressed by user [message #269221 is a reply to message #269220] |
Fri, 21 September 2007 04:15   |
anisam10674
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
Actually I am developing a form in developer 2000 with oracle 8i as database. I have a text-box on the form which is editable. Suppose an user has entered some text for e.g. bold and then he presses <ctrl-B> key combinations. I want to have a code in the key-others (or whichever is the best option) trigger such that the text in the text-box turns to bold.
The above is just one example. In short I would like to store the ascii value of <ctrl-B> combination in a variable and accordingly make the form fire the key-others trigger event.
|
|
|
|