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 typeTGetRotnBlkto thePrGeneralprocedure when you use thegetRotnOpopcode.PrGeneralreturns it with a Boolean variable that tells you whether the user has selected landscape orientation. For information on how to use theTGetRotnBlkrecord with thePrGeneralprocedure, 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
PrGeneralprocedure.lReserved- Reserved.
hPrint- A handle to a
TPrintrecord, which is described on page 9-41. Your application should have already created thisTPrintrecord and passed it through thePrintDefaultorPrValidateroutine to make sure that all of the information in theTPrintrecord is valid. ThePrintDefaultandPrValidateroutines 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
TRUEindicates the user has selected landscape orientation.bXtra- Reserved.