Promoting CREATE event (OpenInsight)
At 31 MAR 2000 12:54:01PM Paxton Scott wrote:
I have successfully promoted the GETFOCUS event for all EDITFIELDs in my application, thanks to the help from Sprezzature and Don Bakke!
But, I am trying the same thing with the CREATE event. I can get the first window that opens (an MDI form) to recognize it…and really don't need it to, but the children i.e. other forms that open on top of the first form, do not 'see' it. I have recompiled the forms after promotion. (Although, I did not recompile my main MDI form, even though the promoted event runs there.)
I have tried both MYAPP*CREATE.WINDOW.OIWIN* and MYAPP*CREATE..OIWIN*
And, sure enough, it runs twice on the first form opened.
Even when I 'run' the forms from the application manager, they do not 'see' the promoted CREATE event.
The window I'm testing with does have a create event on it, but I though both it and the promoted event would run.
In looking at the system monitor, I see the promoted event run on the MIDframe along with it's own create event, but on the child, wheather run from the frame or from the app manage, it does not attempt to run the promoted events.
What am I missing?
Thanks, [email protected]
At 01 APR 2000 09:13PM Paxton Scott wrote:
Thanks, Don. But I was sure it was set to enforced, but I checked, and it was not. I set it, logged out and back in, removed the call in the create event of my test form and recompiled. Well symptom the same as best as I can tell. The promoted event is not running.
I guess just check all my nameing again, but I've done it several times and I think it is all right…any other "common" errors?
Thanks again, Paxton
At 02 APR 2000 12:34AM Donald Bakke wrote:
Paxton,
I think you have already dealt this this but if you have a regular CREATE event for any particular window and you return a 0 then the promoted event won't get called. Of course, this assumes that the name of your promoted event is such that it gets called after the system level and not before. If I recall you said that you create both types of promoted events and have the same problem either way. Anyway, make sure you are returning 1's and that your naming conventions are correct.
FWIW,
At 02 APR 2000 07:18PM Kevin Bolitho wrote:
I have just "played" with this and found that when I wrote a normal create event ( even and empty event) and returned 1 the promoted event was then triggered as expected. On removing the normal event the promoted event continued to work. I assume it was not correctly bound into the compiled window untill then. Do this help you ????
Cheers