Highly dependant on the window. As you've discovered with the player window, DynamicData is provided for many things but these don't always contain everything you'd expect, like tooltips that match the hardcoded version of the same element. They raid window has no corisponding DDs. The XP window can be entirely reproduced except for the right-click menu.
When you run into a roadblock like this, you might have better results with another aproach. Ask yourself what it is you really want to acomplish. Sounds to me what you really need is a simple button that toggles the Player window screen location. No need for 2 windows. Such a button script would look something like this...
OnPress="parent.normalloc=parent.location
parent.location='xxx,yyy'
OnPress=OnPress2"
OnPress1="parent.normalloc=parent.location
parent.location='xxx,yyy'
OnPress=OnPress2"
OnPress2="parent.location=parent.normalloc
OnPress=OnPress1"
This script will make a single button toggle its parent window between the normal location you place the window and a hardcoded location, just replace xxx,yyy with the screen location you want the window to move to.
|