Platforms to show: All Mac Windows Linux Cross-Platform

PDFViewControlMBS.AfterDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called after something was drawn.
Notes: On macOS 10.12.2 or later, this event is called on a non-main thread. In that case the plugin will not call this event.

Feedback, Comments & Corrections

PDFViewControlMBS.AfterDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called after a page annotations were drawn.
Notes: On macOS 10.12.2 or later, this event is called on a non-main thread. In that case the plugin will not call this event.

Feedback, Comments & Corrections

PDFViewControlMBS.AfterDrawRect(graphics as NSGraphicsMBS, x as Double, y as Double, w as Double, h as Double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called after a page was drawn.
Notes: On macOS 10.12.2 or later, this event is called on a non-main thread. In that case the plugin will not call this event.

Feedback, Comments & Corrections

PDFViewControlMBS.BeforeDrawPage(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called before a page was drawn.
Notes: On macOS 10.12.2 or later, this event is called on a non-main thread. In that case the plugin will not call this event.

Feedback, Comments & Corrections

PDFViewControlMBS.BeforeDrawPagePost(graphics as NSGraphicsMBS, page as PDFPageMBS) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called before a page annotations were drawn.
Notes: On macOS 10.12.2 or later, this event is called on a non-main thread. In that case the plugin will not call this event.

Feedback, Comments & Corrections

PDFViewControlMBS.BeforeDrawRect(graphics as NSGraphicsMBS, x as Double, y as Double, w as Double, h as Double) as boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No
Function: The draw event called before a something was drawn.

Feedback, Comments & Corrections

PDFViewControlMBS.BoundsChanged
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event called when the bounds, but not the frame, changed.

Feedback, Comments & Corrections

PDFViewControlMBS.CocoaMouseDown(e as NSEventMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes: This is called before MouseDown, but provides the original Cocoa event, so you can query additional properties.

Feedback, Comments & Corrections

PDFViewControlMBS.CocoaMouseDrag(e as NSEventMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes: This is called before MouseDrag, but provides the original Cocoa event, so you can query additional properties.

Feedback, Comments & Corrections

PDFViewControlMBS.CocoaMouseUp(e as NSEventMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was released.
Notes: This is called before MouseUp, but provides the original Cocoa event, so you can query additional properties.

Feedback, Comments & Corrections

PDFViewControlMBS.EnableMenuItems
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event where you can enable menu items.

Feedback, Comments & Corrections

PDFViewControlMBS.FrameChanged
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The event called when the frame changed.
Notes: This event notifies you, that the control changed it's bounding frame, which is position and/or size.

Feedback, Comments & Corrections

PDFViewControlMBS.GotFocus
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
Function: The control itself got focus.
Notes: This only fires if the control itself got focus and not a sub control.

Feedback, Comments & Corrections

PDFViewControlMBS.LostFocus
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No
Function: The control lost focus.
Notes: This only fires if the control itself lost focus and not a sub control.

Feedback, Comments & Corrections

PDFViewControlMBS.MenuAction(HitItem as MenuItem) As Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Called when a menuitem is choosen.
Notes: This allows the control to react on its relevant menu items. Please return true if you handled it or false to give others a chance.

Feedback, Comments & Corrections

PDFViewControlMBS.MouseDown(x as Integer, y as Integer, Modifiers as Integer) As Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was pressed inside the control’s region at the location passed in to x, y.
Notes:
The coordinates x and y are local to the control, i.e. they represent the position of the mouse click relative to the upper-left corner or the Control.
Return True if you are going to handle the MouseDown. In such a case:
  • The Action event, if any, will not execute and the state of the object will not change.
  • You will receive the MouseDrag and MouseUp events.
If you return False, the system handles the MouseDown so the above event handlers do not get called.

Feedback, Comments & Corrections

PDFViewControlMBS.MouseDrag(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: This event fires continuously after the mouse button was pressed inside the Control.
Notes:
Mouse location is local to the control passed in to x, y.
As this event is fired continuously (hundreds of time per second), it is your responsibility to determine if the mouse has really moved.

Feedback, Comments & Corrections

PDFViewControlMBS.MouseUp(x as Integer, y as Integer)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The mouse button was released.
Notes: Use the x and y parameters to determine if the mouse button was released within the control's boundaries.

Feedback, Comments & Corrections

PDFViewControlMBS.OpenPDFforRemoteGoToAction(action as PDFActionRemoteGoToMBS)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Opens a specified page.
Notes: This event will be called to handle clicks on annotations containing a PDFActionRemoteGoToMBS action. The action contains a URL and a page index and point. You should open the PDF indicated by the URL and go to the page and point indicated. The easiest way to do the latter is to create a PDFDestinationMBS with the page index and point once a PDFDocumentMBS from the URL is created - then you can call: goToDestination method. The default implementation simply beeps.

Feedback, Comments & Corrections

PDFViewControlMBS.PerformFind
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Performs a find operation.
Notes:
Certain PDFAction's may request that the PDF viewer application perform a Find.
The event will be called when the user clicks on an annotation with such an action.

Feedback, Comments & Corrections

PDFViewControlMBS.PerformGoToPage
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Performs a go-to operation.
Notes: Certain PDFAction's may request that the PDF viewer application bring up a panel allowing the user to enter a specific page number. The event will be called when the user clicks on an annotation with such an action.

Feedback, Comments & Corrections

PDFViewControlMBS.PerformPrint
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Prints the current document.
Notes: Certain PDFAction's may request that the PDF viewer application Print the current document. This event will be called when the user clicks on an annotation with such an action.

Feedback, Comments & Corrections

PDFViewControlMBS.PrintJobTitle as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Overrides the job title used when the PDFView is printed.
Notes: Allows to override the job title when PDFView is printed. The default implementation uses the string, if any, associated with the "Title" key from the view's PDFDocumentMBS attribute dictionary. Failing that, it uses the last path component if the PDFDocumentMBS is URL-based.

Feedback, Comments & Corrections

PDFViewControlMBS.ScaleFactorChanged(NewFactor as Double)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Function: The backing store scale factor has changed.
Notes: Please invalidate any cached bitmaps or other relevant state.

Feedback, Comments & Corrections

PDFViewControlMBS.WillChangeScaleFactor(scale as Double) as Double
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Overrides changes to the scale factor.
Notes:
Allows to override changes to the scale factor. The default implementation pins scaling between 0.1 and 10.0.

If you add this event, please return a value, e.g. the passed scale value.

Feedback, Comments & Corrections

PDFViewControlMBS.WillClickOnLink(URL as String)
Type Topic Plugin Version macOS Windows Linux iOS Targets
event PDFKit MBS MacControls Plugin 21.1 ✅ Yes ❌ No ❌ No ❌ No
Function: Handle clicks on URL links in a view.
Notes:
If implemented, this event will be called to handle clicks on URL links within the PDFView.
The default implementation calls openURL on NSWorkspaceMBS class.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins

Start Chat