Generic View operations

From: Wijck, Bart van <"Wijck,>
Date: Fri, 4 Jun 2004 14:38:48 +0200

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

All,

Can anyone enlighten me. When I first came accross Views I thought there
would be a series of generic operations for copying, displaying, printing
etc. any view type.

However Text Views are for example displayed as follows:
                v := TextViews.dir.New(t); (* create a text view for
the text generated above *)
                Views.OpenView(v) (* open the text
view in its own window *)

Whereas the more generic Views from the chapter View Construction follow a
more convoluted path in order to display:
        PROCEDURE Deposit*;
                VAR v: View;
        BEGIN
                NEW(v); Views.Deposit(v)
        END Deposit;

        To execute this program, invoke the following command:

        <commander>"ObxViews0.Deposit; StdCmds.Open"

Why is this different per view type instead of generic for all views types.

Second the "generic" Views of the chapter View Construction appear more
primitive (you need to have compulsary Up calls like Deposit etc.).
Apparently the Text and Form Views are at a higher level and this more
primitive level is hidden. Correct?

Regards, Bart


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-480575490_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4g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FyZSBz
dWJzY3JpYmVkIHRvIHRoZSBtYWlsaW5nIGxpc3QuIFRoYXQgd2F5LCB0aGUgbGlzdCBzZXJ2ZXIg
d2lsbCByZWNvZ25pemUgeW91IGFzIHN1YnNjcmliZXIgYW5kIGZvcndhcmQgeW91ciBwb3N0aW5n
IGltbWVkaWF0ZWx5LCB3aXRob3V0IGNyZWF0aW5nIGFueSBvdmVyaGVhZC5ccGFyDQpccGFyDQpi
KSBJZiwgZm9yIHNvbWUgcmVhc29uLCB5b3UgY2Fubm90IHBvc3QgZnJvbSB0aGUgYWRkcmVzcywg
Ynkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVkLCB5b3VyIG1lc3NhZ2Ugd2lsbCBiZSBtb2RlcmF0
ZWQgdG8gYXZvaWQgc3BhbS4gUGxlYXNlIHVuZGVyc3RhbmQgdGhhdCBtb2RlcmF0aW9uIHdpbGwg
b2Z0ZW4gY2F1c2Ugc29tZSBkZWxheSwgaW4gcGFydGljdWxhciBvdmVyIHdlZWtlbmRzIG9yIGhv
bHlkYXl9fQB0LiBUaGF0IHdheSw=
----boundary-LibPST-iamunique-480575490_-_---
Received on Fri Jun 04 2004 - 14:38:48 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:43 UTC