Important: The information in this document is obsolete and should not be used for new development.
TGetRotnBlk
You pass a record defined by the data typeTGetRotnBlk
to thePrGeneral
procedure when you use thegetRotnOp
opcode.PrGeneral
returns it with a Boolean variable that tells you whether the user has selected landscape orientation. For information on how to use theTGetRotnBlk
record with thePrGeneral
procedure, see "Determining Page Orientation" on page 9-30.
TYPE TGetRotnBlk = {page orientation record} RECORD iOpCode: Integer; {the getRotnOp opcode} iError: Integer; {result code returned by PrGeneral} lReserved: LongInt; {reserved} hPrint: THPrint; {handle to current TPrint record} fLandscape: Boolean; {TRUE if user selected landscape } { printing} bXtra: SignedByte; {reserved} END;
Field Description
iOpCode
- The opcode
getRotnOp
.iError
- The result code returned by the
PrGeneral
procedure.lReserved
- Reserved.
hPrint
- A handle to a
TPrint
record, which is described on page 9-41. Your application should have already created thisTPrint
record and passed it through thePrintDefault
orPrValidate
routine to make sure that all of the information in theTPrint
record is valid. ThePrintDefault
andPrValidate
routines are described on page 9-56 and page 9-57, respectively.fLandscape
- A Boolean value that determines whether the user has selected landscape orientation in the style dialog box. A value of
TRUE
indicates the user has selected landscape orientation.bXtra
- Reserved.