PDA

View Full Version : placement=viewName


johnagrandy
08-06-2003, 06:05 PM
Hi Antun ...

in the Window tutorial

http://www.laszlosystems.com/developers/learn/documentation/tutorials/window.php

in the final code segment, an instance of <text> is assigned via "placement=content" to be a subview of a child view of the the "mediaWindow" class ...

but the particular view named "content" is nested down aways in the view hierarchy of the class ...

how can such an absolute reference be relied upon?

the "name" attribute is local, not global as the "id" attribute is

antun
08-07-2003, 02:25 AM
Well noticed!

That's just a quirk of the way placement works. I guess the theory is that if you make internal changes to the window class (or replace it with a different window altogether), externally you shouldn't have to readdress everything.

It's global from the root of the class.

-Antun