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: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  

DragDrop.SetAutoResizingMask

Sets the auto resizing mask.

Component Version macOS Windows Linux Server iOS SDK
DragDrop 9.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "DragDrop.SetAutoResizingMask"; droparea; Value )   More

Parameters

Parameter Description Example
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle
Value The new setting. 4+8

Result

Returns OK or error.

Description

Sets the auto resizing mask.
This defines whether view changes its size based on the surrounding window.

NameValueDescription
NotSizable0The view cannot be resized.
MinXMargin1The left margin between the view and its superview is flexible.
WidthSizable2The view’s width is flexible.
MaxXMargin4The right margin between the view and its superview is flexible.
MinYMargin8The bottom margin between the view and its superview is flexible.
HeightSizable16The view’s height is flexible.
MaxYMargin32The top margin between the view and its superview is flexible.

e.g. the value 18 means the view can resize both horizontally and vertically with the parent view (window).

Examples

Resize with window growing:

MBS( "DragDrop.SetAutoResizingMask"; $$dragDrop; 4+2+8+16 )

See also

Release notes

Blog Entries

Created 20th February 2019, last changed 22nd February 2019


DragDrop.ReleaseAll - DragDrop.SetCursor

Feedback: Report problem or ask question.




Links
MBS FileMaker blog

Start Chat