Re: [BLACKBOX] Close message?

From: [at]} <Robert>
Date: Tue, 11 Mar 2008 23:49:03 +0000

----boundary-LibPST-iamunique-109148856_-_-
Content-type: text/plain

Doug

I have not thought about this for years, but maybe these fragments contain some
useful clues ...



TYPE
   CloseNotifier = POINTER TO RECORD (Sequencers.Notifier)
                       plotId : INTEGER
                     END;



PROCEDURE (c : CloseNotifier) Notify (VAR msg : Sequencers.Message);
   BEGIN
     WITH msg : Sequencers.CloseMsg DO
        ###########
     ELSE
     END
   END Notify;





   VAR
     cNotif : CloseNotifier;


   BEGIN
     c := Containers.Focus ();
     IF c # NIL THEN c.GetFirstView (Containers.any, v) END;

     IF (v # NIL) & (v IS Plotters.View) THEN
       NEW (cNotif); cNotif.plotId := 1;
       v.Domain ().GetSequencer ()(Sequencers.Sequencer).InstallNotifier
(cNotif) END;


Robert


Douglas G. Danforth wrote:
> Folks,
> How can I receive a "close message" when the user presses the
> close icon (little x in the upper right corner of a window)?
>
> I have the Views.View and Windows.Window pointers to the
> window that I opened. But where and how and what name
> is used to signal me that the window has been closed?
> Views.HandleCtrlMsg?
>
> I don't see it in View, Windows, Properties, Controls, ...
>
> (Message, message everywhere but not a one to close)
>
> -Doug Danforth
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-109148856_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5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mUgdG8gY2xvc2UpXHBhcg0KPiBccGFyDQo+IC1Eb3VnIERhbmZvcnRoXHBhcg0K
PiBccGFyDQo+IFxwYXINCj4gLS0tLVxwYXINCj4gVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNz
YWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gXHBhcg0KPiBMSVNUU0VSVkBMSVNU
Uy5PQkVST04uQ0hccGFyDQo+IFxwYXINCj4gXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRv
IHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1gi
IHRvIExJU1RTRVJWQExJU1RTLk9CfX0Ac3VsdDogTm8tLTI=
----boundary-LibPST-iamunique-109148856_-_---
Received on Wed Mar 12 2008 - 00:49:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:58 UTC