[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Order of handlers (OpenInsight Specific) ====
=== At 18 APR 2001 12:41:36PM Oystein Reigem wrote: ===
{{tag>"OpenInsight Specific"}}
I discovered something weird today.
I have a (non-bound) window with a couple of controls and a few handlers. There is a CREATE handler for the window, a GOTFOCUS handler for the first control in tab order, and a few more. I have debug statements in all the handlers, and when I test run the window the Debugger tells me that the aforementioned GOTFOCUS handler runs first, and the CREATE handler second. I thought CREATE always ran before any control handlers. Or is it me that got it all wrong?
In case the reason is some curruption in my window I've tried with a new window, with just the two relevant handlers. The first window has quickevents that call a commuter function. The second one has scripted events (just a debug and a return 0 statement, really).
- Oystein -
----
=== At 20 APR 2001 06:29PM Oystein Reigem wrote: ===
Could somebody please tell me if it's me or my system that's crazy?
- Oystein -
----
=== At 25 APR 2001 04:02AM Simon Wilmot wrote: ===
Oystein,
You'll be pleased to know it's not your system (I can't vouch for you ).
Just tested on my system and it does the same. We have always had problems in that Gotfocus actions prior to Lostfocus if the Lostfocus event has to put up a message or some other 3rd party action.
Recommend that you have a hidden control and put focus onto your first control with a Post_Event in the Create event.
Simon
Rebus
----
=== At 25 APR 2001 04:54AM Oystein Reigem wrote: ===
Simon,
Thanks. I'm relieved it's not me. But still totally confused I've never noticed it before. So I'm not [i]quite[/i] relieved. :-)
I'm also surprised nobody else reported this problem. Or did they? I can't find postings on the subject.
- Oystein -
----
=== At 25 APR 2001 08:50AM Simon Wilmot wrote: ===
Oystein,
I can't remember if we ever did report it, probably via Extranet if we had, but have coded round it in any case.
I am not sure about the Gotfocus event on first prompt prior to create - as with you, have never noticed the problem. Perhaps because on our systems the Gotfocus is promoted ??
Simon
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=9B7C18B4EC1DF4BE85256A32005BB343|View this thread on the forum...]]