` Printed Icetips Article

Icetips Article



ABC: Window manager closing sequence
1998-07-20 -- Jon Waterhouse
 
Newsgroups: topspeed.products.c4

>On a standard updateform, I need to do some extra updating after a records
>is inserted.
>If I put the embeds on the OK button with priority last, then its stil
>executed before the insert
>actually happens.

Here's a repeat of a thing I posted a few weeks ago.

With a little digging in the ABWINDOW.CLW file I came up with the
following sequence of events. These are WindowManager methods.

In TakeAccepted if the control is the control that has been designated
the OkControl, the PostCompleted method is called.

PostCompleted calls the NonStop acceptance loop which posts
Event:Completed when it is finished  (or posts event completed
immediately for deletes).

The  TakeWindowEvent traps the EVENT:Completed and calls the
TakeCompleted method.

The TakeCompleted method saves the history buffer, then does the real
insert/change delete based on the value of ThisWindow.Request.

So maybe you should put your stuff at the end of the TakeCompleted
WindowManger method?


----------------------
Jon Waterhouse
Andy Rowe Consultants,
St. John's NF



Printed May 3, 2024, 11:32 am
This article has been viewed/printed 35120 times.
Google search has resulted in 9 hits on this article since January 25, 2004.