Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DragDrop.GetWidth
Queries current width of the drop area.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DragDrop | 4.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "DragDrop.GetWidth"; droparea ) More
Parameters
Parameter | Description | Example |
---|---|---|
droparea | The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. | $dropHandle |
Result
Returns width or error.
Description
Queries current width of the drop area.Examples
Query current size:
Set Variable [ $width ; Value: MBS( "DragDrop.GetWidth"; $$dropview ) ]
Set Variable [ $height ; Value: MBS( "DragDrop.GetHeight"; $$dropview ) ]
Show Custom Dialog [ "Current size" ; $width & " x " & $height ]
See also
- DragDrop.CreateWithControl
- DragDrop.GetHeight
- DragDrop.GetLeft
- DragDrop.GetPath
- DragDrop.GetPicture
- DragDrop.GetText
- DragDrop.GetTypes
This function checks for a license.
Created 18th August 2014, last changed 18th December 2020