Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Overlay.SetFrameWithControl

Sets the size and position of the overlay based on a given control.

Component Version macOS Windows Linux Server iOS SDK
Overlay 14.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Overlay.SetFrameWithControl"; OverlayRef; WindowRef; ControlName { ; DX; DY; DWidth; DHeight } )   More

Parameters

Parameter Description Example Flags
OverlayRef The overlay window reference number. $overlay
WindowRef Window Reference is the unique OS level window ID.
You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window.
0
ControlName The name of the control on your FileMaker form.
e.g. you can place a rectangle there to define the position.
"mymedia"
DX A delta to move overlay more to left or right. 0 Optional
DY A delta to move overlay more to top or bottom. 0 Optional
DWidth extra width to add. 0 Optional
DHeight Extra height to add 0 Optional

Result

Returns OK or error.

Description

Sets the size and position of the overlay based on a given control.
Convenient method to place an overlay next to a FileMaker control, e.g. with a help text.

Examples

Set frame based on control:

Set Variable [ $r ; Value: MBS("Overlay.SetFrameWithControl"; $$overlay; 0; "info") ]

See also

Example Databases

Blog Entries

Created 22nd January 2024, last changed 24th January 2024


Overlay.SetFrame - Overlay.SetHasShadow