Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSPageLayoutMBS class.

NSPageLayoutMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as DesktopWindow)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Presents a page setup sheet for the given NSPrintInfo object, document-modal relative to the given window.

printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.

This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).

See also:

NSPageLayoutMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as NSWindowMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Presents a page setup sheet for the given NSPrintInfo object, document-modal relative to the given window.

printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.

This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).

See also:

NSPageLayoutMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as window)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Presents a page setup sheet for the given NSPrintInfo object, document-modal relative to the given window.

printInfo: The NSPrintInfo object to use.
win: The window to which the sheet is attached.

This method calls the printPanelDidEnd event later passing returnCode which is either NSCancelButton (0) or NSOKButton (1).

See also:

NSPageLayoutMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes a new page layout object.

NSPageLayoutMBS.printInfo as NSPrintInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the NSPrintInfo object used when the receiver is run.

The NSPrintInfo object is set using the beginSheetWithPrintInfo or runModalWithPrintInfo method. The shared NSPrintInfo object is used if the receiver is run using runModal.

NSPageLayoutMBS.runModal as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Displays the receiver and begins the modal loop using the shared NSPrintInfo object.
Example
dim p as new NSPageLayoutMBS
MsgBox str(p.runModal)

Returns NSCancelButton (0) if the user clicks the Cancel button; otherwise, NSOKButton (1).
The receiver's values are recorded in the shared NSPrintInfo object.

NSPageLayoutMBS.runModalWithPrintInfo(printInfo as NSPrintInfoMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Printing MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Displays the receiver and begins the modal loop using the given NSPrintInfo object.

printInfo: The NSPrintInfo object to use.

Returns NSCancelButton if the user clicks the Cancel button; otherwise, NSOKButton.
The receiver's values are recorded in printInfo.

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


The biggest plugin in space...