PtrDevice:Selection Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Selection Access/Assign

Previous pageReturn to chapter overviewNext page
Type        Logic

Purpose

The access returns TRUE if the PRINTDLG.FLAGS member has the SELECTION bit set.  When queried after the Print Dialog Window is shown, it indicates that the user chose the selection radio button.

 

The assign sets (TRUE) or clears (FALSE) the PRINTDLG.FLAGS member SELECTION bit.  Setting this to TRUE causes the Selection radio button to be selected by default when the Print Dialog Window is shown.

Example

// Did the user click the Selection radio button in the

// print dialog?

if oPtrDevice:Selection

         // print only the currently selected text

endif