Re: [BLACKBOX] How to 'embed'

From: Douglas G. Danforth <"Douglas>
Date: Tue, 4 Oct 2011 14:47:51 -0700

----boundary-LibPST-iamunique-1605919245_-_- Content-type: text/plain Wojtek, I used that language because in the documentation for Models it says "A model may be a container, i.e., contain embedded views. An embedded view can communicate with the model in which it is embedded via a Context. A container model provides a context for each embedded view. Using its context, a view can inquire its current size, or it can try to change its size." Josef, You said "You can do this also with your own model but the view used for displaying your model must be aware of embedded views and render everything accordingly." >From that I infer that there is no general mechanism for ebbedding. Each model must handle it specifically. Now I am up a creek since I do not know how to put a view, v(small v) at a specific place within its container view, V(big v). I know how to do this for FormViews (again a specific case) by using a FormControllers and using its Insert procedure which takes l, t, r, b coordinates. I tried tracking the logic of that through the code and got lost after descending many modules. I'll take a look at TextModels and hopefully find a way to generalize embedding in a bland view which does not have a model (or at list a model that is extremely primitive). Thank you. -Doug On 10/4/2011 1:21 AM, Josef Templ wrote: Actually, it depends on the capabilities of the model. A TextModels.Model, for example, provides means for embedding an arbitray Views.View into the character stream (see TextModels.Writer.WriteView). You can do this also with your own model but the view used for displaying your model must be aware of embedded views and render everything accordingly. Rendering the embedded views will typically be delegated to the embedded views, though. - JT ----- Original Message ----- From: "Wojtek Skulski" Received on Tue Oct 04 2011 - 23:47:51 UTC

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