I was trying to make a popup window and place it on a specific location in one of my main windows, but it looks like the whole location thing does not work or I don't understand how it works.
Let me explain my problem:
I have a window with the following position and size:
If I want a popup window to be on the right side of the main window and the size of the popup window is: 255/1190. I have to subtract 255 from 2520 right? then it should be exactly on the right side of my main window. but instead, it ends up further away.
And besides that, the whole screen gets zoomed and that is not what I want.
• Change the action in the Navigation tab to "No Action."
• Then, click on the "Script Editor" tab, and open the popup with a script.
# Get the parent window
parentWindow = system.gui.getParentWindow(event)
# Get and open the popup
popup = system.nav.openWindow('CM/Popup')
# Calculate the desired coordinates for the popup's position
x = parentWindow.width - popup.width # Far right of Main Window
y = 0 # Top of Main Window
# Position the popup
popup.setLocation(x, y)
What is that header component with a blue background that is displaying the time? Is that a docked window, a container of some kind, a label? Perhaps we can simply position off of that.
yes there are docked windows I use that pop next to this window I just added in a reply. For the print parentWindow.path should I replace 'Window' for the name of my main window?