O$ - $control not firing on window Close Box click

Chris Peck chris-peck at wordmaster.com
Wed Jan 27 12:34:20 EST 2010


Thanks David, I'll give that a try right now.

Chris Peck
Software Developer
Word Master, Inc.





On Jan 27, 2010, at 11:29 AM, Barnett, David wrote:

> evClose and evCloseBox and similar are window events. Try putting  
> them into the window's $event method rather than $control. $control  
> would be to watch for events that happen to objects contained within  
> the window (evAfter, for example). $event is for handling events  
> that happen directly to the window rather than objects within the  
> window.
>
> David
>
> David Barnett
> Senior Software Engineer
> Advertising Solutions
> Harris Corporation, Broadcast Communications
> T: +1-212-303-4273
> E: David.Barnett at harris.com
> www.broadcast.harris.com
>
>
>
> -----Original Message-----
> From: omnisdev-en-bounces at lists.omnis-dev.com on behalf of Chris Peck
> Sent: Wed 1/27/2010 12:23 PM
> To: OmnisDev List - English
> Subject: O$ - $control not firing on window Close Box click
>
>
> Hi All,
>
> Does anyone know why an overridden $control method does not fire when
> a window's Close Box is being clicked?  I have an existing window that
> I've just done a few modifications to, which should have no effect on
> the window's $control method (no field $control's added or anything
> similar, just added a droplist for filtering purposes), and suddenly
> my window's $control no longer runs when the Close Box is clicked.  It
> runs in all other event circumstances as it should.  I have
> breakpointed the $control method to check to see if it even hits on
> the window's Close Box being clicked and nothing.  I've checked
> eventing against evClose and evCloseBox also, neither receives a hit
> in this situation.  I've tested against the window in its previous
> version in the same library, side by side with the new version, and
> the $control method runs perfectly on it, with the exact same coding
> in the $construct and $control.  Nothing else has changed for the
> window's composition or settings.  Anyone have any idea what else to
> look at?
>
> Chris Peck
> Software Developer
> Word Master, Inc.
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list