Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 5.1/6.0, builds 1100-1271 > 1248 – 20 May 2012

MX_WINPTR Refinement

Scroll Prev Top Next More

Switch to a more modern version of the printer selection dialog for better compatibility with Windows 8. Main visual difference is the addition of the "Apply" button. At the application level, you can now retrieve several additional parameters about the current printer selection: orientation, paper length, width, form name, duplex option, bin, color versus mono, and the quality (resolution). All are optional:

xcall MIAMEX, MX_WINPTR, status, printer {port {,driver {,orientation {,length {,width {,formname {,duplex {,bin {,color {,resolution}}}}}}}}}}

(see A-Shell Reference for description of individual parameters)

In addition to the new parameters, the status parameter now indicates whether the user hit the "Print" button (1) or the "Apply" and then the "Cancel" (2). Note that this is only for information purposes, since neither "Print" nor "Apply" actually changes the internal default settings in the printer. But the application might choose to interpret the two cases differently.