getWindowCenter_Left ( )

Function stats

Average user rating
166
429
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_Left  ( width )


Parameters

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


Description

Tags:  window   left  

Return the left 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_Left ( 1000 )


Sample output

250

 

Function code

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


JSONGetElement ( getWindowCenter ( "" ; width ) ; "left" )

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

    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/429

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

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