Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Preview.Create

Creates a new preview area inside the window with the given rectangle.

Component Version macOS Windows Linux Server iOS SDK
Preview 13.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Preview.Create"; WindowRef; x; y; w; h )   More

Parameters

Parameter Description Example
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0
x The left coordinate in the window. 0
y The top coordinate in the window. 0
w The width of the preview area in the window. 600
h The height of the preview area in the window. 400

Result

Returns reference number or error.

Description

Creates a new preview area inside the window with the given rectangle.
A way to display a PDF Viewer in FileMaker independent of an interactive container.
Available on Windows 10 and newer.

If you use a register on the window, be aware that the drop area actually is in front of the register. So you need to check in the script which register page is current and should get the dropped files.

Use Preview.Release later to destroy the preview area.
Preview reference numbers are starting at 92000 and counting up for each new preview area.

See also

Blog Entries

This function checks for a license.

Created 12nd June 2023, last changed 29th June 2023


Preview.Available - Preview.CreateWithControl