getWindowCenter_Top ( )

Function stats

Average user rating
166
428
9999
Support
FileMaker 10.0 +
Date posted
15 February 2020
Version
1
Recursive function
No

Author Info
 Josh Ormond

11 functions

Average Rating None

author_avatar



 

Function overview

Prototype

getWindowCenter_Top  ( height )


Parameters

height  Supply the height of the window, or leave blank to use current window.


Description

Tags:  window   top   center  

Return the top coordinates to center a window, as a number.

This is a helper function to getWindowCenter. Requires FileMaker Pro 16 or higher.

Examples

Sample input

getWindowCenter_Top ( 800 )


Sample output

270

 

Function code

/***************************************
*
*    Function Name:        getWindowCenter_Top ( height )
*    Parameters:        @height = Supply the height of the window, or leave blank to use current window.
*    Purpose:            Return the top coordinates to center a window on the screen as a number.
*    Notes:            
*    Change log:        2020-01-28 JO - Initial build.
*
*****************************************/


JSONGetElement ( getWindowCenter ( height ; "" ) ; "top" )

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/428

    Prototype: getWindowCenter_Top( height )
    Function Author: Josh Ormond (http://www.fmfunctions.com/mid/166)
    Last updated: 15 February 2020
    Version: 1

*/
// ===================================