Re: [BLACKBOX] Close message?

From: Douglas G. Danforth <"Douglas>
Date: Thu, 13 Mar 2008 10:49:56 -0700

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

Chris,

That is perfect!

One must extend Views.Frame first
    TYPE
       MyFrame = POINTER TO RECORD(Views.Frame) END;
and then implement

        PROCEDURE (v: View) GetNewFrame (VAR f: Frame);
        VAR myFrame: MyFrame;
    BEGIN
        NEW(myFrame);
        f := myFrame;
        display := TRUE
    END GetNewFrame;

and

    PROCEDURE (f: MyFrame) Close;
    BEGIN
        display := FALSE;
    END Close;
   
With these two procedures and without any polling I now know if my
display is
open or closed.

Thank you very much!

-Doug Danforth


CFB Software wrote:
> Windows.Window.frame is a Views.RootFrame which is an extension of
> Views.Frame. Hence you may be able to implement your own version of:
>
> (From the Views documentation)
>
> ===================================================
> PROCEDURE (f: Frame) Close
> NEW, EMPTY
> Perform finalization before the frame is removed.
> After a call to Close, f.view and f.rider are set to NIL and
> f.ConnectTo(NIL) is called.
> Close is called internally.
> ===================================================
>
> Regards,
> Chris
>
> Chris Burrows
> CFB Software
> http://www.cfbsoftware.com/cp
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-43315283_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVm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 UTC

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