Set popup location for y axis only?

Greetings…

I would like to set the location of a popup to x=center and y=200. How to accomplish with script? The setLocation requires two args and I only want to set one.

Cheers,
Steve

From top of my head…

window = system.gui.getWindow("Popup")
system.nav.centerWindow(window)
window.setLocation(windows.X,200)

or something like:

window.setLocation(parentwindow.width/2 - window.width/2,200)
2 Likes

Thanks Jan… ‘or something like’ worked perfectly!

1 Like