# moveWindow()

**URL:** <https://forum.inductiveautomation.com/t/movewindow/6217>\
**Category:** Ignition\
**Created:** [April 12, 2013, 7:01pm UTC](https://forum.inductiveautomation.com/t/movewindow/6217 "2013-04-12T19:01:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [April 12, 2013, 7:01pm UTC](https://forum.inductiveautomation.com/t/movewindow/6217/1 "2013-04-12T19:01:50Z")

</div>

`if event.propertyName == "value":
   newX = event.newValue;
   rect = event.source.parent.getComponent("Rectangle")
   system.gui.moveComponent(rect, newX, 250)`

This code can manipulate a components location.  
How about moving a window using the same principle of annimation?  
EDIT:  
window.setLocation(0,0)  
got it.
