Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets a new frame for the image view.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ImageView 7.4 Yes No No No Yes
MBS( "ImageView.SetFrame"; ImageView; X; Y; Width; Height { ; swap } )   More


Parameter Description Example value
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.
swap Optional
Whether to swap y coordinate. By default we swap them. Pass 0 to disable or 1 to swap.


Returns OK or error.


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

Created 14th September 2017, last changed 14th September 2017

ImageView.ReleaseAll   -   ImageView.SetFrameWithControl

Feedback: Report problem or ask question.

MBS Xojo tutorial videos