"Chaining" QuickEvents (OpenInsight Specific)
At 21 OCT 1997 05:23:43PM Alex Eloquent wrote:
I have a few QuickEvents in menus which call my window's QBFxxxx events. After each of the QBFxxxx events, I'd like to execute a bit of code which updates some stuff on the window. I have this stored in an OMNIEVENT script, which is called as a QuickEvent from each ofo the QBFxxxx events, but it seems never to get called.
Is it possible that QuickEvents can't call each other?
Any clues?
At 21 OCT 1997 06:02PM Aaron Kaplan wrote:
The menu does a quick event call to QBFWhatever. QBFWhatever has another quick event that calls omnievent. Omnievent is not being called, right?
What's happening in the QBF event? Depending on event_status, it could be aborting.
What happens if you place event code in the QBFWhatever so that it FORWARD_EVENT ; RETURN 0
Does that make a difference?
I don't know anything that will stop the event chain outside of a bad status. One event should be treated like all the others.
apk@sprezzatura.com
At 22 OCT 1997 09:10AM Gene Gleyzer Revelation wrote:
Alex,
This is a known bug in QBF system event handlers – for an obsolete reason they end up with "return 0" that stops the event chain. The fix is scheduled for OpenInsight 3.5.
Meanwhile, the work-around would be having a form specific handler with a code that looks like:
* declare subroutine Forward_Event, Send_Event declare function Get_EventStatus Forward_Event() ;* execute system event-handler if Get_EventStatus(statCode) else Send_Event(@window, 'OMNIEVENT', …) end return 0 ***
Gene
At 22 OCT 1997 12:40PM Alex Eloquent wrote:
Thanks Gene…
I'd tried this solution earlier, and it worked, but I really didn't relish the idea of using scripted events where QuickEvents should have worked perfectly well.
So… Refresh my memory, when is 3.5 coming? ;)
At 23 OCT 1997 12:29PM Jennifer Revelation wrote:
OpenInsight 3.5 is due mid-November.