GetObjectHeight ( )

Function stats

Average user rating
489
378
9999
Support
FileMaker 10.0 +
Date posted
12 February 2015
Last updated
12 February 2015
Version
Recursive function
No

Author Info
 wwdto

2 functions

Average Rating None

author_avatar



 

Function overview

Prototype

GetObjectHeight  ( ObjectName )


Parameters

ObjectName  


Description

Tags:  Layout Objects   Layout Calculation  

Uses the GetLayoutObjectAttribute function:

GetLayoutObjectAttribute ("WebViewer.Maps"; "bounds") returns something like: 5 345 795 770 0
Values are 1-left 2-top 3-right 4-bottom 5:?

Corresponds with the CF "GetObjectWidth"

Examples

Sample input

GetObjectHeigth ( "WebViewer.Maps")


Sample output

425 - when GetLayoutObjectAttribute ("WebViewer.Maps"; "bounds") returns: 5 345 795 770 0

 

Function code

Let ( [ObjectBounds = GetLayoutObjectAttribute (ObjectName; "bounds")
        ; BottomPosition = MiddleWords ( ObjectBounds ; 4 ; 1 )
        ; TopPosition= MiddleWords ( ObjectBounds ; 2; 1 )]
        ; BottomPosition - TopPosition
)

/*
2015, Wolfgang Wunderlich
DeskTop Organisaton GmbH
GetLayoutObjectAttribute ("MyButton"; "bounds") returns something like: 138 24 391 38 0
Returned values: 1-left 2-top 3-right 4-bottom 5:?
*/

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

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

    Prototype: GetObjectHeight( ObjectName )
    Function Author: wwdto (http://www.fmfunctions.com/mid/489)
    Last updated: 12 February 2015
    Version: 1.3

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

 

 

 

 

 

 

 

Top Tags

Text Parsing  (33)
List  (31)
Date  (28)
XML  (26)
Format  (23)
Sql  (22)
Dev  (20)
Debug  (17)
Interface  (15)
Layout  (15)
Text  (14)
Variables  (12)
Layout Objects  (11)
Filter  (11)
Design  (10)
Array  (7)