Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DragDrop.SetFrameWithControl
Repositions drop area to given control.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
- AVPlayer.SetFrameWithControl
- DragDrop.CreateWithControl
- DragDrop.SetFrame
- ImageView.SetFrameWithControl
- MapView.SetFrameWithControl
- TextView.SetFrameWithControl
- WebView.SetFrameWithControl
Blog Entries
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.
Created 19th October 2018, last changed 4th August 2020
DragDrop.SetFrame - DragDrop.SetImage
Feedback: Report problem or ask question.
Links
MBS Xojo blog