Fax Sending: 2.1 Drawing the Contents: Declaring the Objects

Up: GEOS SDK TechDocs| Up | Prev: 2 Drawing the Contents | Next: 2.2 Supplying the Document's Name

Again, make sure the following line is in the application's .gp file:

library spool    # Defines PrintControlClass

In the previous section, we saw that the PrintControl object needed to appear on certain GCN lists and in the MailboxSendControl 's ATTR_MAILBOX_SEND_CONTROL_TRANSPORT_HINT_OPTR field. (See Adding the Fax Controls to the Proper GCN Lists and MailboxSendControl Object Ready for Fax.)

Assuming that the PrintControl won't be used for anything else, the following declaration will suffice:

@object PrintControlClass MyPrintControl = {
    GI_states = @default & ~GS_ENABLED;
    PCI_docNameOutput = process;
    PCI_output = process;
}

Here we have turned off the GS_ENABLED flag because the PrintControl 's UI will never appear in the application; it isn't part of the application's generic UI tree. (To include the PrintControl's UI in your application, leave it enabled, add it to the generic UI tree, and see the Printing chapter for more information.)

The PCI_output line specifies that the application's process object will be responsible for drawing the fax's contents. The PCI_docNameOutput line specifies that the application's process will be responsible for providing the fax's name.


Up: GEOS SDK TechDocs| Up | Prev: 2 Drawing the Contents | Next: 2.2 Supplying the Document's Name