鍵盤值觸發Form6i指定事件

来源:互联网 发布:ssh命令连接linux 编辑:程序博客网 时间:2024/04/26 13:08

今天测试完成:用Oracle 自带oracle terminal的工具來實現:
對主控程序 mismenu.fmb 主界面增加按 F12就可以進入子程序做法(功能等同于鼠標雙擊)
1. 用附件1的方法做第1步到第10步,生成新的FMRUSW.RES
2. 把FMRUSW.RES  更新到要用戶電腦的 C:/d2k6i/FORMS60下
3. 在mismenu.fmb的Form 級下增加 Key-F0 Trigger,寫入調用子程序的 sql script
4. 編譯完成后即可使用

附件1:
通過Oracle 自带oracle terminal的工具來實現:鍵盤值觸發Form6i指定事件,具體操作如下:

Define a Key-F12 trigger.  
1 - Open FMRUSW.RES file in ORACLE Terminal(如果你默认语言是英文, 就是frmusw.res)
2 - Select KEY BINDINGS by clicking on the "K" icon.
3 - Select NORMAL in the KEY BINDING EDITOR: windows-sqlforms
4 - Click on the EDIT KEY BINDING button to bring up the     KEY BINDING DEFINTION screen
5 - Click on the INSERT ROW button in the KEY BINDING DEFINITION     screen
6 - In the row under column ACTION, enter:  User Defined Key 0
7 - In the row under column BINDING, enter:  F12
8 - Click okay twice to come back to the main window  
9 - Generate and Save by clicking on the "GRINDER" icon
10 - Quit ORACLE terminal
11 - In the Forms application, 在 KEY_F0 trigger 事件中編寫程序來觸發自定義事件

備註:
1. 如果有打開form6i, generate FMRUSW.RES 時會出錯
2. ORACLE Terminal 工具來自于 form6i 光盤

 

原创粉丝点击