Class: Print_Dialog_Mixin
**************************************************************************** //
** ** //
** Class : Print_Dialog_Mixin ** //
** ** //
** Purpose : This class defines properties and funcions common to both ** //
** the PrintDialog and PageSetupDialog dialog boxes. ** //
** ** //
**************************************************************************** //
Class Hierarchy:
cObject

Mixin


Print_Dialog_MixinClass Definition
Properties
Integer
Collate
Integer
Color
Integer
Copies
Integer
DefaultSource
String
DeviceName
Handle
DevModeHandle
Handle
DevNamesHandle
Integer
DitherType
String
DriverName
Property String DevMode ""
Property String DevNames ""
DEVMODE and DEVNAMES properties
Integer
Duplex
String
FormName
Handle
hWindow
PRINTDLG and PAGESETUPDLG properties
This has been changed. -1 means to use the main_window's window_handle, 0 means
use no parent (it will be modeless), any other value is a window_handle. Note that
this is used indirectly by ParentWindowHandle to get the real window handle. Normally
a developer will never need to change this.
Integer
ICMIntent
Integer
ICMMethod
Integer
MediaType
Integer
Orientation
DEVMODE properties
String
OutputName
Integer
PaperLength
Integer
PaperSize
Integer
PaperWidth
Integer
PrintQuality
Integer
Scale
Integer
TTOption
Integer
YResolution
Functions and Procedures

Define_Print_Dialog()
************************************************************************ //
** ** //
** Procedure : Define_Print_Dialog ** //
** ** //
** Purpose : Define properties common to the PrintDialog and ** //
** PageSetupDialog boxes. ** //
** ** //
************************************************************************ //
Handle
InitDevMode()
************************************************************************ //
** ** //
** Function : InitDevMode ** //
** ** //
** Purpose : This function returns a handle to a global memory ** //
** object that contains a DEVMODE structure. ** //
** ** //
** Returns : Returns the handle to the global memory object, zero if ** //
** the global memory object could not be allocated. ** //
** ** //
************************************************************************ //
Handle
InitDevNames()
************************************************************************ //
** ** //
** Function : InitDevNames ** //
** ** //
** Purpose : This function returns a handle to a global memory ** //
** object that contains a DEVNAMES structure. ** //
** ** //
** Returns : Returns the handle to the global memory object, zero if ** //
** the global memory object could not be allocated. ** //
** ** //
************************************************************************ //
handle
ParentWindowHandle()
************************************************************************ //
** ** //
** Function : ParentWindowHandle ** //
** ** //
** Purpose : This function returns the windows handle to be used ** //
** as the parent window handle ** //
** ** //
** Returns : Should return a valid handle or 0. If zero the dialog ** //
** will be modeless (which you probably would never want) ** //
** ** //
************************************************************************ //
String
PointerToString(Pointer pString)
**************************************************************************** //
** ** //
** Function : PointerToString ** //
** ** //
** Purpose : This function takes a pointer to a null terminated string ** //
** and returns the string without the null. ** //
** ** //
**************************************************************************** //
Integer
ReadDevMode(Handle hDevMode)
************************************************************************ //
** ** //
** Function : ReadDevMode ** //
** ** //
** Purpose : This function reads the members of the DEVMODE ** //
** structure when the PrintDialog or PageSetupDlg function ** //
** returns. ** //
** ** //
************************************************************************ //
Integer
ReadDevNames(Handle hDevNames)
************************************************************************ //
** ** //
** Function : ReadDevNames ** //
** ** //
** Purpose : This function reads the members of the DEVNAMES ** //
** structure when the PrintDialog or PageSetupDlg function ** //
** returns. ** //
** ** //
************************************************************************ //