GetLayoutObjectAttribute
objectName - the name of a named layout object on the current layout.
attributeName - the name of a supported attribute (see below).
repetitionNumber - the repetition number (for repeating fields).
portalRowNumber - the number of the row in the portal.
objectType - returns the object's type as a text literal, in English. Valid return values are: field, text, graphic, line, rectangle, rounded rectangle, oval, group, button group, button, portal, tab panel, slide panel, chart, web viewer, popover, popover button, and unknown.
hasFocus - returns
1 (True) if
objectName is currently active, otherwise returns
0 (False). Objects that can have the focus are fields, portals, tab panels, slide panels, buttons, popover buttons, charts, and groups. Also returns
1 for a portal when a portal row is selected.
containsFocus - returns
1 (True) if
objectName is currently active or if it contains an active object; otherwise returns
0 (False). Objects that can contain the focus are fields, portals, tab panels, slide panels, buttons, popover buttons, popovers, charts, and groups.
isFrontPanel - returns
1 (True) if the target object is the tab or slide panel that is in front.
bounds - returns a list of numeric values, separated by spaces, that describes the placement of the specified object (left-top to right-bottom).
left - returns the left edge coordinate of the specified object.
right - returns the right edge coordinate of the specified object.
top - returns the top edge coordinate of the specified object.
bottom - returns the bottom edge coordinate of the specified object.
width - returns a number representing the width (in points) of the specified object.
height - returns a number representing the height (in points) of the specified object.
rotation - returns a number representing the rotation (in degrees) of the specified object.
startPoint,endPoint - returns a pair of numeric values (horizontal vertical), separated by spaces, that represent the start point or end point of a line object. Other objects return the top-left point for
startPoint and the bottom-right point for
endPoint.
source - returns the source description of the specified object as follows. For:
content - returns the content of the specified object as follows. For:
graphics - returns image data such as the name of a file in a container field if the image is stored (in the field or externally), or the reference to the file if the image is unstored.
enclosingObject - returns
objectName of the enclosing layout object. Otherwise, returns an empty string. Only groups, tab panels, slide panels, popover buttons, popovers, and portals can contain other objects.
containedObjects - returns a list of named objects contained within
objectName. Only groups, tab panels, slide panels, popover buttons, popovers, and portals can contain other objects.
isobjecthidden - returns
1 (True) if
objectName is hidden for the current record. Otherwise, returns
0 (False). Returns
1 for objects other than popovers that are to the right of the layout boundary.
•
|
When repetitionNumber or portalRowNumber is 0, the function behaves as if the parameter was not specified. For portalRowNumber, the function returns data from the first portal row. For repetitionNumber, the function acts on the first repetition (for returning content or source) or acts on the entire field as a whole (for returning bounds). Both parameters are necessary because you must be able to reference a particular field repetition within a particular portal row.
|
GetLayoutObjectAttribute("CancelButton";"objectType") returns
button (if the button was created in a new file or a file after it was converted), returns
button group (if the button is associated with a button action or script and was converted in a file from a previous version of FileMaker Pro), or returns
text (if the button isn’t associated with a button action or script and was converted in a file from a previous version of FileMaker Pro).