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. | $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
- AVPlayer.SetFrameWithControl
- DragDrop.CreateWithControl
- DragDrop.SetFrame
- ImageView.SetFrameWithControl
- MapView.SetFrameWithControl
- Overlay.SetFrameWithControl
- Preview.SetFrameWithControl
- TextView.SetFrameWithControl
- WebView.SetFrameWithControl
Release notes
- Version 10.3
- Rewrote control placement for MacOS and iOS controls for AVPlayer.SetFrameWithControl, DragDrop.SetFrameWithControl, ImageView.SetFrameWithControl, MapView.SetFrameWithControl TextView.SetFrameWithControl, WebView.SetFrameWithControl.
- Version 8.5
- Added DragDrop.SetFrameWithControl function.
Blog Entries
This function is free to use.
Created 19th October 2018, last changed 4th August 2020