Posts: 69
Threads: 42
Joined: Jun 2006
I wish that an existing window "A" should follow another existing window "B" whenever I move the window "B", maintaining itself always in the same position in reference to window "B" ; the window "A" should behave in the same way as it would be a toolbar attached to the window "B". Is there a way to do this?
Posts: 12,061
Threads: 140
Joined: Dec 2002
Posts: 69
Threads: 42
Joined: Jun 2006
I have found a very easy and simple way to maintain two windows attached so that I can move them as they would be a single window, by only moving the windows named QMP:
Function
qmp_reposition
;Start
int x y
GetWinXY(win("QMP") x y)
mov (x-373) (y-32) "+Now Playing"
wait 0 WV win("QMP" "PlayerCanvas")
goto Start
The nice thing is that I have saved this code not as a macro, but as a function; in this way it behaves very smoothly. If anybody has suggestions to improve this code, answer here, please. Thank you.