Question On F3 Of Menubar

Greetings Everyone! Good Day, I am using OpenEdge 11.3, I want to use the F3 function to be able to make the dialogbox appear for the search function, while the focus in on the menuBar. I'm looking forward for your responses Thank you. . .
 
This is my sample code Sir.
PROCEDURE Menu0007:
HIDE FRAME f_Menu001 NO-PAUSE.
1stloop:
DO WHILE t_mn01 = 0:
PAUSE 0 BEFORE-HIDE.
VIEW FRAME f_Menu000.
t_mn01 = 0.
HIDE FRAME f_Menu001 NO-PAUSE.
DEFINE SUB-MENU sys_collection
MENU-ITEM sys_coll_office LABEL "Office Collection"
MENU-ITEM sys_coll_bank LABEL "Bank Collection ".
MENU-ITEM sys_coll_remote LABEL "Remote Collection".

DEFINE SUB-Menu systems
Menu-ITEM sys_nsc LABEL "NSC "
Menu-ITEM sys_reading LABEL "Reading "
Menu-ITEM sys_billing LABEL "Billing "
SUB-MENU sys_collection LABEL "Collection"
Menu-ITEM sys_queries LABEL "Queries "
Menu-ITEM sys_subsystems LABEL "SubSystems"
Menu-ITEM sys_JMS LABEL "JMS ".

DEFINE SUB-MENU rep_collection
MENU-ITEM rep_coll_office LABEL "Office Collection Reports"
MENU-ITEM rep_coll_bank LABEL "Bank Collection Reports "
MENU-ITEM rep_coll_remote LABEL "Remote Collection Reports".

DEFINE SUB-Menu reports
Menu-ITEM rep_reprint LABEL "Re-Printing "
Menu-ITEM rep_yearly LABEL "Annual "
Menu-ITEM rep_monthly LABEL "Monthly "
Menu-ITEM rep_daily LABEL "Daily "
Menu-ITEM rep_periodic LABEL "Periodic "
Menu-ITEM rep_stat LABEL "Statistics "
MENU-ITEM rep_misc LABEL "Misce&llaneous"
MENU-ITEM rep_nsc LABEL "NSC "
MENU-ITEM rep_reading LABEL "Reading "
MENU-ITEM rep_eNGAS LABEL "eNGAS "
MENU-ITEM rep_EDPOp LABEL "ICT Operation"
SUB-MENU rep_collection LABEL "Collection "
MENU-ITEM rep_subsystems LABEL "SubSys&tems ".

DEFINE SUB-Menu maintenance
Menu-ITEM maint-tables LABEL "Data Tables "
MENU-ITEM os-utils LABEL "OS &Utilities "
Menu-ITEM online LABEL "O&n-line dBase "
Menu-ITEM offline LABEL "O&ff-line dBASE"
Menu-ITEM archive LABEL "Archive Data ".

DEFINE Menu m_mainMenu MenuBAR DCOLOR 3
SUB-Menu systems LABEL " &SYSTEMS "
SUB-Menu reports LABEL " &REPORTS "
SUB-Menu maintenance LABEL " &MAINTENANCE "
Menu-ITEM other LABEL " &OTHER MENUS "
Menu-ITEM Menu-exit LABEL " E&XIT ".

Menu-ITEM sys_reading:SENSITIVE = YES.
CURRENT-WINDOW:MenuBAR = Menu m_mainMenu:HANDLE.
CURRENT-WINDOW:VISIBLE = TRUE.

ON F3 OF MENU m_mainMenu DO:
MESSAGE "Sample" VIEW-AS ALERT-BOX.
END.


WAIT-FOR F3 OF MENU m_mainMenu OR CHOOSE OF Menu-ITEM Menu-exit IN Menu m_mainMenu.
END.
END PROCEDURE.
 

RealHeavyDude

Well-Known Member
I don't work with Putty - here we work with a commerical product called attachmate refelection. Anyways, in the terminal emulation I need to set the terminal type ( usually I use XTERM ) and I need to define the keyboard mappings for some of the F keys as they are by default used by the terminal emulation ( for example F3 pops up the search window if not mapped ). I am guessing that that is your issue.

Whenever you post code - please wrap it in CODE tags, it makes it much more easy to read.

Heavy Regards, RealHeavyDude.
 

Osborne

Active Member
As RHD posted, one thing to try for PuTTY is to set the keyboard function key setting to "Xterm R6".

However, I am not sure if you can do something like "ON F3 OF MENU m_mainMenu" for menus like you can for other widgets. You can set F3 as an accelerator key but I do not think this is what you are looking for:
Code:
Menu-ITEM Menu-exit LABEL " E&XIT " ACCELERATOR "F3"
 
I don't work with Putty - here we work with a commerical product called attachmate refelection. Anyways, in the terminal emulation I need to set the terminal type ( usually I use XTERM ) and I need to define the keyboard mappings for some of the F keys as they are by default used by the terminal emulation ( for example F3 pops up the search window if not mapped ). I am guessing that that is your issue.

Whenever you post code - please wrap it in CODE tags, it makes it much more easy to read.

Heavy Regards, RealHeavyDude.

Yes Sir, thank you for your help.
 
I don't work with Putty - here we work with a commerical product called attachmate refelection. Anyways, in the terminal emulation I need to set the terminal type ( usually I use XTERM ) and I need to define the keyboard mappings for some of the F keys as they are by default used by the terminal emulation ( for example F3 pops up the search window if not mapped ). I am guessing that that is your issue.

Whenever you post code - please wrap it in CODE tags, it makes it much more easy to read.

Heavy Regards, RealHeavyDude.
Sir RHD, Can you teach me how to define keyboard mappings for F keys?
 
Top