Announce: Tk::MessageBox-1.00 
Author Message
 Announce: Tk::MessageBox-1.00

MessageBox-1.00.readme is a Tk module which provides a simple message box
dialogue box similar to that provided under Windows. Its basically a
simple version of supplied with Tk (from which much code is
taken) but with defaults and in particular automatic keyboard binding.

The MessageBox is different in 4 main respects from Dialog:
1) fixed width buttons (more windowsy)
2) automatic keyboard binding
3) defaults to simple OK
4) less versatile than

e.g. #1: A simple OK box with keyboard bindings for <o>, <Space> and
<Return> etc.
    use MessageBox ; # Haven't specified OK button - its the default.
    my $msg = $Win->MessageBox( -title => 'Test', -text => 'Done.' ) ;
    $msg->Show ;

e.g. #2: A yes/no box, again with automatic keyboard binding of <y> and
<n> etc.
    my $msg = $Win->MessageBox(
        -title     => 'Save File?',
        -text      => "Save '$file'?",
        -buttons   => [ 'Yes', 'No' ],
        -defbutton => 'Yes'
        # Several other options are available and documented in the pod.
        ) ;
    my $ans = $msg->Show ;
    &save_file( $file ) if $ans eq 'Yes' ;

Copyright (c) Mark Summerfield 1998/9. All Rights Reserved.
May be used/distributed/modified under the same terms as Perl itself.

If you want a copy I can email you the .tar.gz is < 4K.


CHEST Software Team Manager   Fax: +44 (0)1225 826177
http://www.*-*-*.com/        Mobile:     0403 535803

This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the

Tue, 10 Jul 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ANNOUNCE: VCS::LibCVS 1.00.00

2. FAQ for perl/Tk with Tk v8.00?

3. ANNOUNCE: Tom-2.00 FinalBeta

4. ANNOUNCE: mod_perl-1.00

5. ANNOUNCE: - Pointcast perl module

6. ANNOUNCE: IO-Tty v1.00 and Expect v1.14

7. ANNOUNCE: DDL::Oracle v1.00

8. ANNOUNCE:: DDL::Oracle v1.00

9. ANNOUNCE: Informix Database Driver for Perl (DBD::Informix) version 1.00.PC1 released

10. Announce: Parse-Yapp-1.00 released

11. Announcing Grouse Grep V2.00 for GNU/Linux

12. ANNOUNCE: libnet-1.00


Powered by phpBB® Forum Software