There are two different concepts, "parent" and "owner". I don't
think that any of the Views you are talking about will have a
parent and View.set-position will do what you want it to do.

Here is a small example. The View will be shown when you load
it. Move it around to some position on the screen and press the
Get Position button. Then move it somewhere else and press
Set Position. Notice that it goes back to where it was when you
pressed Get Position.

This works because a top-level View (any View with a title bar)
has no parent.

----

{curl 3.0 applet}


{let v:View =
    {View
        {Frame
            margin = .25in,
            "This is a sample View"
        }
    }
}

{let vx:Distance}
{let vy:Distance}

{HBox
    spacing=3pt,
    {CommandButton label="Get Position",
        {on Action do
            {if (not v.destroyed?) then
                set (vx, vy) = {v.get-position}
            }
        }
    },
    {CommandButton label="Set Position",
        {on Action do
            {if (not v.destroyed?) then
                {v.set-position vx, vy}
            }
        }
    }
}

{v.show}


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

*******************************************
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]

Reply via email to