Platforms to show: All Mac Windows Linux Cross-Platform

Back to QLPreviewPanelMBS class.

QLPreviewPanelMBS.beginPreviewPanel

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 26.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called when the panel begins.

QLPreviewPanelMBS.didLoadPreviewItem(file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This event is called after an item has been loaded.

QLPreviewPanelMBS.endPreviewPanel

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 26.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called when the panel ends.

QLPreviewPanelMBS.handleEvent(e as NSEventMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked by the preview panel when it receives an event it doesn't handle.
Example
Function handleEvent(e as NSEventMBS) Handles handleEvent as boolean
if e.type = NSEventMBS.NSKeyDown then

if e.keyCode = 125 then
System.DebugLog "cursor down pressed"
elseif e.keyCode = 126 then
System.DebugLog "cursor up pressed"
end if

else

if e.keyCode = 125 then
System.DebugLog "cursor down released"
elseif e.keyCode = 126 then
System.DebugLog "cursor up released"
end if

end if

Return false
End Function

Returns true if you did not handle this event.

Some examples using this event:

QLPreviewPanelMBS.numberOfPreviewItems as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event called to ask you for the number of items that the preview panel should preview.

Some examples using this event:

QLPreviewPanelMBS.previewItemAtIndex(index as Integer) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event is called to ask you for the item with the given index.

Some examples using this event:

QLPreviewPanelMBS.sourceFrameOnScreenForPreviewItem(file as folderitem) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Invoked when the preview panel opens or closes to provide a zoom effect.

Return a zero rect if there is no origin point, this will produce a fade of the panel. The coordinates are screen based.

Some examples using this event:

QLPreviewPanelMBS.transitionImageForPreviewItem(file as folderitem, byref contentRect as NSRectMBS) as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called to ask you for the transition image for a given preview item.

Invoked when the preview panel opens or closes to provide a smooth transition when zooming.

contentRect: The rect within the image that actually represents the content of the document. For example, for icons the actual rect is generally smaller than the icon itself.

Return an image the panel will crossfade with when opening or closing. You can specify the actual "document" content rect in the image in contentRect.

QLPreviewPanelMBS.willLoadPreviewItem(file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This event is called before an item is loaded.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...