Menu creation (OpenInsight Specific)
At 24 MAR 1998 07:46:18AM Bob Watosn wrote:
When creating a menu the following line will cause the windows oimnievent to be called, passing the menu name as a parameter, when the menu item is selected.
itemStruct=2*':@appid:'*OMNIEVENT*':@window:'.'
Can I call a stored procedure and pass it the menu items name without running a quickevent?.
Thanks in advance
Bob Watson
At 24 MAR 1998 01:02PM Aaron Kaplan wrote:
Calling the subroutine is in itself a quickevent though. Go into the menu builder, create a quickevent that calls your routine and pass in "@SELF".
apk@sprezzatura.com
At 25 MAR 1998 06:13AM Bob Watson wrote:
Actually what i am trying to do is replace the floating menu that is invoked when a control is right-clicked with my own menu. The example in the knowledge base stores the code in the OmniEvent of the form. However my code is in a stored procedure. How do I call the stored procedure directly when an item is selected from the menu?
If I was creating the menu in the menu builder I would obviously call the SP via a quickevent. I've tried many combinations of quickevent calls in ItemStruct as in the example. I've looked in SysreposWinExes to see if I can figure out the structure from there.
Any help would be appreciated.
Bob Watson
At 30 MAR 1998 10:54AM Cameron Revelation wrote:
Bob,
When creating a menu…
Please specify what you are trying to do …. Creating a menu item on the fly? Creating a WINEXE structure on the fly? Or am I way off?
Cameron Purdy
info@revelation.com
At 31 MAR 1998 06:22PM Bob Watson wrote:
Yes, I,m trying to replace the menu that appears on right-click on some controls with my own custom menu. Presumably I'm going to have to qualify the right-click for all controls on create. But do have to create the menu on the fly each time the user right-clicks or can I call a pre-defined floating menu?
Hope it makes sense this time!
Bob Watson
At 01 APR 1998 11:47AM Cameron Revelation wrote:
Bob,
But do have to create the menu on the fly each time the user right-clicks or can I call a pre-defined floating menu?
I believe the example calls a pre-defined menu. AFAIK, a "floating menu" must exist as part of the window's menu.
Cameron Purdy
info@revelation.com
At 01 APR 1998 01:56PM Gene Gleyzer Revelation wrote:
Bob,
only an event could be callable by a floating menu item. In our example it's the OMNIEVENT, but you can design and use your own event with the EventDesigner. This event could be one line long – just calling into a stored procedure, but it should exist at window (or control) specific level.
Gene