February 9, 201312 yr i am creating my own dialogue boxes for my database. i want the new windows to position in the center of the original layout on screen. the 'distance from top' and 'distance from left' options are great, but they reposition based on the edge of the monitor rather that the active filemaker file. i'm assuming a calculation in these fields will solve this... how would i go about this?
February 9, 201312 yr See the Get(WindowWidth), Get(WindowHeight), Get(WindowLeft) and Get(WindowTop) functions. If your dialog window is 300px wide, your horizontal position would be Get(WindowLeft) + (Get(WindowWidth)-300)/2 .
Create an account or sign in to comment