# Moving popup windows

**URL:** <https://forum.inductiveautomation.com/t/moving-popup-windows/1902>\
**Category:** Ignition\
**Created:** [June 6, 2010, 12:40pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902 "2010-06-06T12:40:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [June 6, 2010, 12:40pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902/1 "2010-06-06T12:40:52Z")

</div>

There seems to be a way to center a newly opened window, but is there a way to move a window so that it is “next to” the component that was clicked to open the popup? Does anyone have any experience doing this, and can share their technique?  
Thanks…

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [June 7, 2010, 3:59pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902/2 "2010-06-07T15:59:55Z")

</div>

You might want to take a look at the system.gui.convertPointToScreen() function. It will spit out the xy coordinates relative to the upper left corner of the monitor. From there you can move your window to accordingly (taking client headers/borders into account).

---

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [June 8, 2010, 4:47pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902/3 "2010-06-08T16:47:21Z")

</div>

Thanks, I will explore with that. But how does one move a window?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [June 8, 2010, 7:43pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902/4 "2010-06-08T19:43:03Z")

</div>

[code]def getBanner(event):  
import system  
try:  
window = system.gui.getWindow(“Banner”)  
except ValueError:  
window = system.nav.openWindow(“Banner”)

```
return window

```

def placeBanner(event,x,y):  
import app  
window = app.banner.getBanner(event)  
window.setLocation(x,y)

def placeBannerAbsolute(event,x,y):  
import app,system  
window = app.banner.getBanner(event)  
loc = system.gui.convertPointToScreen(x, y, event)  
window.setLocation(loc[0],loc[1])  
[/code]

---

<div class="post-metadata">

**Author:** ![NorthPoint](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@NorthPoint](https://forum.inductiveautomation.com/u/NorthPoint)\
**Post date:** [June 8, 2010, 7:58pm UTC](https://forum.inductiveautomation.com/t/moving-popup-windows/1902/5 "2010-06-08T19:58:14Z")

</div>

Thank you, that looks great.
