Re: [BLACKBOX] How to 'embed'

From: Campbell, Robert (SELEX GALILEO, UK) <robert.d.campbell{([at]})nowhere.xy>
Date: Fri, 7 Oct 2011 09:23:13 +0100


Robert,
Very nice, thank you.

A couple of comments.

The xPos and yPos should be associated with the contained view and not
the containing (host) view. I would wrap the contained view such that
it had l, t, r, b coordinates.

 
Obviously you should do what is right for you. But I understand that there is an established
 convention for sub-view size. It requests (using Properties.SizePref ), the host decides (usually but
 not always by agreeing), and the Context is used to inform the sub-view of the host's decision.
 
It seemed natural and convenient to put the position with the size. Note that the sub-view 'carries' the context, so it already
'has' both the size & position information as sub-fields.
 
I have just checked; that is what FormModels does.

I like your test for NIL of Views.ThisFrame. I had tried simply always
doing Views.InstallFrame which works since the documentation just
ignores an already installed frame (but it seems to me to be overkill).

I did something close to what you have and was indeed able to display
a single (in my case) toggle button.

But the button was inactive. It did not respond to mouse clicks.

So it appears I need to also implement a HandleCtrlMsg.

General Embedding
I now need to extract exactly what your code is doing in a general
manner so one can say "These are the minimal requirements
for embedding a subview within a view" such that all subviews
receive all of the messages that the view receives. That is,
I want a passive view with active subviews.

-Doug
 

I want to do something very similar, which is why I have spent time on this. But it is not that near the top of my 'ToDo' list.
Please post your results when you crack making the sub-views active.
 
Cheers
 
Robert
 
 



 

SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
Received on Fri Oct 07 2011 - 10:23:13 UTC

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