Home » Developer & Programmer » Forms » ...Key Events...
...Key Events... [message #123476] Mon, 13 June 2005 12:32 Go to next message
orcl_dba
Messages: 84
Registered: March 2005
Member
HI people

hope this time anyone can answer me ..

i want that whenever i press a specific key
any action should be performed

for example i want that whenever i press "C" or "c"

the active form be closed ..

OR whenever i press "L" or "l" ... LOV should be called
Can i do this in Forms...

i have seen key pressed trigger but how can i use the ascii value of key..

thnx for replies .. if any this time. .

best regards
Re: ...Key Events... [message #123607 is a reply to message #123476] Tue, 14 June 2005 02:31 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I assume that you have only one active field of one character on your form. You can't use When-Validate-Item trigger on this field to perform a Close-Form unless you use a 'timer'.

I don't understand how you can use 'L' for LOV as you can't tell the difference between a data 'L' and control 'L'. The only time I have seen asci characters used for control is on a control only or flash screen.

David
Re: ...Key Events... [message #123700 is a reply to message #123476] Tue, 14 June 2005 09:03 Go to previous messageGo to next message
orcl_dba
Messages: 84
Registered: March 2005
Member
Thanx david for the Answer at least
The situation is that

i want that whenever user press
suppose S

The Form of Student record should open ..

Can i do this
like i have a main form which contain menu baar

which has differnt links to different forms. .like students, teacher , books etc ..


Can i use shortcut key to navigate in forms. .llike if i press S
the student form should be viewed..

if i press suppose T .. teacher form should be viewd..
is this possible..

This is possible in Visual Basic to use or pick up Key ascii values and work accordingly..

suppose if C has ascii value of suppose 67..

we can catpture this value on key press event in Vb and work accordking

suppose if Key ascii = 67 then
for exapmple open form ( child)

suppose ..this was just an exampe..

hope to see some good replies

thanx alot
best regards
Re: ...Key Events... [message #123817 is a reply to message #123700] Wed, 15 June 2005 00:15 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
In the menu you can specify 'hot keys' basically "alt+x" where 'x' is an asci character. You can use it the same way as you use any windows menu. The character specified will have an underscored displayed when the menu drops-down. Oracle treats upper and lower case equally when selecting the alt+key but only underscores the cahracter in the drop-down if the case in the displayed name is the same as the hot-key definition.

Normally this facility is only used for navigating between forms, leave the LOV stuff to a button on the icon bar.

David
Previous Topic: how to exit from long fetching
Next Topic: how to display result of a dynamic select on a form?
Goto Forum:
  


Current Time: Fri Sep 20 10:18:03 CDT 2024