GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Prima::Dialog::PrintDialog(3) User Contributed Perl Documentation Prima::Dialog::PrintDialog(3)

Prima::Dialog::PrintDialog - standard printer setup dialog

Provides a standard dialog that allows the user to select a printer and its options. The toolkit does not provide the in-depth management of the printer options; this can only be accessed by executing a printer-specific setup window, called by "Prima::Printer::setup_dialog". The class invokes this method when the user presses 'Properties' button. Otherwise, the class provides only selection of a printer from the printer list.

When the dialog finished successfully, the selected printer is set as the current by writing to "Prima::Printer::printer" property. This technique allows direct use of the user-selected printer and its properties without prior knowledge of the selection process.

        use Prima qw(Dialog::PrintDialog Application);

        my $dlg = Prima::Dialog::PrintDialog-> new;
        if ( $dlg-> execute) {
                my $p = $dlg-> printer;
                if ( $p-> begin_doc ) {
                        $p-> text_out( 'Hello world', 10, 10);
                        $p-> end_doc;
                }
        }
        $dlg-> destroy;

Dmitry Karasik, <dmitry@karasik.eu.org>.

Prima, Prima::Window, Prima::Printer.
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.