BBjPrintPreview Methods
Description
In BBj 7.00 and higher, the BBjPrintPreview object provides methods for previewing print jobs.
Implemented Interfaces
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjPrintPreview
A BBjPrintPreview object is created through the following BBjWindow methods:
|
Return Value |
Method |
|---|---|
|
BBjPrintPreview |
addPrintPreview(int ID, number x, number y, number width, number height, string title, string flags) |
Creation Flags
| Flag | Description |
|---|---|
|
$0001$ |
Sets the control to be initially disabled. |
| $0010$ |
Sets the control to be initially invisible. |
| $0800$ |
Draws a recessed client edge around the control. |
| $1000$ | Draws a raised edge around the control. |
Methods of BBjPrintPreview
|
Return Value |
Method |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
getIndex() |
|
|
|
|
|
getZoom() |
|
|
lastPage() |
|
|
nextPage() |
|
|
|
|
|
|
|
|
scrollUp() |
|
|
setIndex(int pageNumber) |
|
|
setZoom(double zoomAmount) |
|
|
twoPage() |
Methods of BBjPrintPreview implemented for DropTarget
| Return Value | Method |
|---|---|
|
int |
|
|
void |
setDropActions(int actions) |
|
void |
setDropTypes(BBjVector types) |
Methods of BBjPrintPreview inherited from BBjControl
Events
|
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
|---|---|---|---|
|
ON_DROP_TARGET_DROP |
D |
||
|
ON_GAINED_FOCUS |
f |
||
|
ON_LOST_FOCUS |
f |
||
|
ON_MOUSE_ENTER |
E |
||
|
ON_MOUSE_EXIT |
E |
||
|
ON_POPUP_REQUEST |
r |
||
|
ON_RIGHT_MOUSE_DOWN |
R |
Constants inherited from BBjControl
Example
|
See Also
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.