[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference star::wizards

Title: "ASK THE WIZARDS"
Moderator:QUARK::LIONEL
Created:Mon Oct 30 1995
Last Modified:Mon May 12 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1857
Total number of notes:3728

1475.0. "Open: C to set the default printer" by STAR::JKEENAN () Mon Feb 03 1997 10:38

Return-Path: "VMS001::WWW"@vms001.das-x.dec.com
Received: by vmsmkt.zko.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
	Thu, 16 Jan 1997 17:55:17 -0500
Received: from vms001 by mail11.digital.com (8.7.5/UNX 1.5/1.0/WV)
	id RAA15036; Thu, 16 Jan 1997 17:46:16 -0500 (EST)
Date: Thu, 16 Jan 1997 17:45:28 -0500
Message-Id: <[email protected]>
From: "VMS001::WWW"@vms001.das-x.dec.com (16-Jan-1997 1745)
To: [email protected], [email protected], [email protected]
Subject: Ask the Wizard: '[email protected]'
X-VMS-To: [email protected]

Remote Host: (null)
Browser Type: NCSA_Mosaic/2.7-5 (X11;OpenVMS V6.1-1H1 Digital AlphaStation 200 4/166)  libwww/2.12 modified  via proxy gateway  CERN-HTTPD/3.0 libwww/2.17
Remote Info: <null>
Name: Roy Jewell
Email Address: [email protected]
CPU Architecture: VAX
Version: v 6.1
Questions: 

i need some C code to set the default printer and extract the 
printer selected in the motif "DXmPrintDialog"widgets.  
The last extracted printer will then become the default
printer the next time the  application is used.
thanks.. r j jewell
T.RTitleUserPersonal
Name
DateLines
1475.1See decw$examples:decburger.cXDELTA::HOFFMANSteve, OpenVMS EngineeringMon Feb 03 1997 18:5432
  I'd look at DXmCreatePrintBox, at DXmCreatePrintDialog, at
  DXmPrintWgtPrintJob, and at DXmPrintWgtAugmentList, among others.
  (Specifically, I'd look at using the XmNokCallback with the
  DXmCreatePrintDialog or similar -- one can set the default on
  the way in, and can read the results with the OK callback.)

  See _DECwindows Motif Guide to Application Programming_ chapter
  "Using the Print Widget", and see _DECwindows Extensions to Motif_.
  The DECburger example in DECW$EXAMPLES: works with the print widget.

  Alternatively, logical names such as "DECW$PRINTER_FORMAT_PS" can
  be used to select the default printer.

   DECW$PRINTER_FORMAT_DEFAULT    Default
   DECW$PRINTER_FORMAT_TEXT       Text
   DECW$PRINTER_FORMAT_LINE       Line printer
   DECW$PRINTER_FORMAT_TERM       Terminal
   DECW$PRINTER_FORMAT_ANSI2      ANSI2
   DECW$PRINTER_FORMAT_ANSI       ANSI
   DECW$PRINTER_FORMAT_PS         PostScript
   DECW$PRINTER_FORMAT_REGIS      ReGIS
   DECW$PRINTER_FORMAT_TEK        TEKTRONIX
   DECW$PRINTER_FORMAT_DDIF       DDIF

 $ Define DECW$PRINTER_FORMAT_TEXT    "CLUSTER_LN03,CLUSTER_PRINT,ANSI_ARTWRK,ANSI_PROTON"
 $ Define DECW$PRINTER_FORMAT_LINE    "CLUSTER_PRINT"
 $ Define DECW$PRINTER_FORMAT_ANSI2   "CLUSTER_LN03,ANSI_ARTWRK,ANSI2_PROTON"
 $ Define DECW$PRINTER_FORMAT_ANSI    "CLUSTER_LN03,ANSI_ARTWRK,ANSI_PROTON"
 $ Define DECW$PRINTER_FORMAT_PS       "PS_ARTWRK,PS_PROTON"
 $ Define DECW$PRINTER_FORMAT_REGIS   "SYS$NULL"