KMoody
Member
Is there any way to set a frame's X (column) and Y (row) coordinates relative to the current screen without regard to any parent frames? In other words, how can I place a frame at the center of the screen, not the center of the frame's parent frame?
This is my current solution:
However, this will only work if popupFrame: Parent doesn't have a parent as well.
This is my current solution:
Code:
frameColumn = SESSION:WIDTH-PIXELS / 2.00 - FRAME popupFrame:WIDTH-PIXELS / 2.00 - FRAME popupFrame:PARENT:X.
frameRow = SESSION:HEIGHT-PIXELS / 2.00 - FRAME popupFrame:HEIGHT-PIXELS / 2.00 - FRAME popupFrame:PARENT:Y.
FRAME popupFrame:X = frameColumn.
FRAME popupFrame:Y = frameRow.
However, this will only work if popupFrame: Parent doesn't have a parent as well.
Last edited: