----boundary-LibPST-iamunique-978080508_-_-
Content-type: text/plain
René,
one reason why there is no Close procedure for Views.View is that it would
be rather difficult to define the semantics of such an operation for all
circumstances.
Views are not always opened in a new window as for example in
"ObxCubes.Deposit; StdCmds.Open" but can also be inserted into other views
(so called container views). An example for the latter case would be an
error marker view (DevMarkers.View) inserted by the compiler into an
incorrect program text. Since for text elements only operations like insert,
move, and delete are defined, the intended effect of closing an embedded
view wouldn't immediately be clear.
Somewhat similar problems arise if views are wrapped by other views, e.g. by
a StdScroller. What would be the correct behavior for the wrapper if the
wrapped view suddenly vanishes?
The question gets even more involved if you take BlackBox's hierarchical
version of the model-view-controller framework into account. As it is
explained in chapter 2 "Compound Documents" of the BlackBox tutorial, there
are situations where the same view gets displayed in several windows. What
should happen in this case?
As you can see, there may be no best solution for the general problem. So,
it's probably better to handle the Close operation for a given view instance
depending on the concrete problem at hand. The solution suggested by Robert
would certainly work but often there are more elegant ways to get rid of
open views -- maybe even by delegating this task to the user as it is done
in most document centered user interfaces.
Cheers
Marc,
Oberon microsystems, Inc.
-----Original Message-----
From: René Dorta [mailto:rene{([at]})nowhere.xy
Sent: Montag, 17. März 2003 00:21
To: BlackBox
Subject: Missing method!
Why such a handy method as "Close" is missing from Views.View?.
How can I close a specific view "v"?...
Would be so nice just to say "v.Close",
without caring about "v" being the current focus or not.
Thanks folks!
René Dorta
Universidad de Carabobo. Valencia. Venezuela.
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To 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.xy
Current 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.
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To 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.xy
Current 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-978080508_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBSZW5cJ2U5LFxwYXINClxwYXIN
Cm9uZSByZWFzb24gd2h5IHRoZXJlIGlzIG5vIENsb3NlIHByb2NlZHVyZSBmb3IgVmlld3MuVmll
dyBpcyB0aGF0IGl0IHdvdWxkXHBhcg0KYmUgcmF0aGVyIGRpZmZpY3VsdCB0byBkZWZpbmUgdGhl
IHNlbWFudGljcyBvZiBzdWNoIGFuIG9wZXJhdGlvbiBmb3IgYWxsXHBhcg0KY2lyY3Vtc3RhbmNl
cy5ccGFyDQpccGFyDQpWaWV3cyBhcmUgbm90IGFsd2F5cyBvcGVuZWQgaW4gYSBuZXcgd2luZG93
IGFzIGZvciBleGFtcGxlIG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