PDA

View Full Version : Moving windows along with the Main Window


gbr
30th November 2004, 08:52
What's the best way to move a window ( a container ) along with the Main window ? That is, if the user moves the Main window, the other window should move along with the Main Window ( the relative position should remain the same ).

Also, how do I check if a window ( a container ) is visible or closed ?

Do all windows appear when the user right click Winamp ? I created a window called "Timer Window" and it appeared below "Video". But when I created another window "Vis Window", it does not appear.

Thanks.

Logic-8
30th November 2004, 13:34
the easiest way to move containers along with the main would be to use the <snappoint> tag... you put one in the layout(container) you want to snap and one in the main container layout. If they have the same id they'll snap and will drag with the main container.

example : <Snappoint id="AVStoMain" x="50" y="10"/> (placed inside the container-layout to attach to the main)
<Snappoint id="AVStoMain" x="0" y="0"/> (placed inside of the main)