Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attaching a window to another
#1
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?
#2
Floating toolbar difficulties (toolbars in exe)
#3
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
Code:
Copy      Help
;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.


Forum Jump:


Users browsing this thread: 1 Guest(s)