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

DragDrop.SetFrameWithControl

Repositions drop area to given control.

Component Version macOS Windows Linux Server iOS SDK
DragDrop 8.5 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "DragDrop.SetFrameWithControl"; droparea; ControlName { ; DX; DY } )   More

Parameters

Parameter Description Example Flags
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle
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 drop area more to left or right. 0 Optional
DY A delta to move drop area more to top or bottom. 0 Optional

Result

Returns OK or error.

Description

Repositions drop area to given control.
If you moved control in layout mode, this can move the drop area back to the new position.
Also useful to switch between different locations on the layout.

Can be used with OnLayoutSizeChange script trigger to reposition control whenever the window changes size.

Examples

Move drop area:

Set Variable [ $r ; Value: MBS( "DragDrop.SetFrameWithControl"; $$dropview; "drop") ]

See also

Release notes

Blog Entries

This function is free to use.

Created 19th October 2018, last changed 4th August 2020


DragDrop.SetFrame - DragDrop.SetImage