Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
ImageView.SetFrame
Sets a new frame for the image view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ImageView | 7.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "ImageView.SetFrame"; ImageView; X; Y; Width; Height ) More
Parameters
Parameter | Description | Example |
---|---|---|
ImageView | The image view reference number. | $$ImageView |
X | The x coordinate. | |
Y | The y coordinate. | |
Width | The width of the control. | |
Height | The height of the control. |
Result
Returns OK or error.
Description
Sets a new frame for the image view.As Cocoa framework uses zero for the bottom coordinate, we have to swap for the normal topdown coordinates to be used.
See also
Release notes
- Version 10.3
- Rewrote also DragDrop.SetFrame, ImageView.SetFrame, MapView.SetFrame and TextView.SetFrame.
- Rewrote control placement for MacOS and iOS controls for AVPlayer.SetFrameWithControl, DragDrop.SetFrameWithControl, ImageView.SetFrameWithControl, MapView.SetFrameWithControl TextView.SetFrameWithControl, WebView.SetFrameWithControl.
- Version 9.0
- Added ImageView.SetFrameWithControl and MapView.SetFrameWithControl functions.
Blog Entries
This function checks for a license.
Created 14th September 2017, last changed 14th September 2017