Absolute X and Y of Frame

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:
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:
I can't remember which DLL it is, but you can get the screen's size etc from a standard DLL. If you're using Windows. There must be a similar solution in *nix.
 
Back
Top