On 2011-03-24, at 13:49, [email protected] wrote:

> Hi Tucker,
> 
> Is it possible to alter a view to have a different parent? It didn't work 
> when I tried something simple like using setAttribute to change the parent 
> and immediateparent.

This is what placement/defaultplacement/determinePlacement are all about.  And 
you will see that `parent` is your 'lexical' parent (the parent that you were 
specified under in the source) and `immediateparent` (I did not make up these 
confusing names) is your 'dynamic' parent (the parent that you are placed with 
respect to, or the parent whose coordinate system you are in).

You can't, in the current system, change your `parent` at all, and you can only 
set/choose your `immediateparent` at construct time, i.e., when your parent is 
creating you as one of its subnodes.  At that point in time, when a node is 
being created, it can be attached to a different parent than the one it was 
lexically specified in.

[There may be some cases in Adam-code where he rips a node from its parent and 
re-attaches it to another, but that's not supported.  The limitation is that in 
most of the runtime platforms, the LZX node is reflected by a platform 'sprite' 
which has similar limitations about dynamically changing their parent.]

Let me know if you need more info.

Reply via email to