Making SoftKeys work.. (OpenInsight 32-bit Specific)
At 17 NOV 2003 12:26:06PM Jeff Morra wrote:
I am trying to make the the system I am converting from AREV to OI, as easy on the users as possible, in terms of the shortcut keys that they all use to pop around from place to place. I created a hidden menu with an item that activates with F6, and brings up a PopUp with all my "Softkeys" for that window. I also have other menu items that are activated with SF1, SF2, etc to emmulate the softkeys. How can I call my SF1, SF2, etc. menu events from a differant menu event (F6)? So basically they can either hit SF1 for the first softkey, or hit F6, bring up the list of available softkey options and select they want that way? Thanks again.
At 17 NOV 2003 12:26PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Use SEND_EVENT to send a MENU event to the control in question (@WINDOW.MENU.OPTION.OPTION.etc).
eg.
call send_Event( @window : ".MENU.TOPITEM.SOFTKEYITEM", "MENU" )World Leaders in all things RevSoft
At 17 NOV 2003 12:26PM Gerald Lovel wrote:
Sprezz,
Thanks. I guess I missed the point that was being asked. To generalize from the popup to the menu, you could find the "SOFTKEYS" popup item in the menu, then for the third item down on the popup, go down three items in the menu structure, and get the menu item name. Then send a MENU event to that item.
This way, one piece of programming works for all the popups in all the windows. All Jeff has to do then is keep the popups and the menus synchronized as he designs windows.
Gerald
At 17 NOV 2003 12:26PM Jeff Morra wrote:
Gerald,
Thanks.. I have menu items for each of my softkeys, and I am going to have a seperate popup for each window displaying these softkeys. My question is how do I call one menu event from inside another menu event?
At 17 NOV 2003 12:26PM Gerald Lovel wrote:
Jeff,
This tiny message window is entirely too inadequate to give you more than a brief outline of what I might do:
1) Define menus in each window which have relateds and/or softkeys, including only the keys for that window on the menus.
2) When the window is created, merge these softkeys with a generic menu of a form for data-bound entry windows, then display the completed menu on the form.
3) Either give up the AREV softkey popup mentality, or create a separate popup for each window to go along with the menus in the window.
Gerald
At 17 NOV 2003 12:26PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Or he could just store the name of the menu item as a hidden column in the popup and make it the return value from the popup then send a MENU event to the return value from the popup. Then he wouldn't need to worry about positional references.
World Leaders in all things RevSoft
At 17 NOV 2003 12:26PM Jeff Morra wrote:
That is exactly what I am doing.. Thanks for all the input guys, you have been a tremendious help.. I am sure I will have more questions tomorrow.. heh