Anybody making Windows interfaces w/ Perl?

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Anybody making Windows interfaces w/ Perl?

    The sample below makes a simple message box in MS Windows. The rest of the
    Win32 and Win32API modules includes handy interfaces to the OS, but no other
    GUI objects like the message box (e.g., radio boxes, pull-down menus,
    fill-in forms, etc.). Or am I missing something?

    I am about to install and learn Visual C++ 6 and want to make sure I'm not
    wasting my time. I would prefer to keep everything pure Perl if possible.

    [Aside: I think the TCL stuff for Perl on Unix making GUIs on X
    Windows --is that right?]

    ------------------------------------------------
    Feel free to mail me: workingstiff19
    ....and that's at hotmail.


    ### This was done in Active Perl 5.006001 ####
    use Win32;

    # display a message box with an exclamation mark and an 'OK' button
    MsgBox("Test", "This is a test", 48);

    exit 0;

    sub MsgBox {
    my ($caption, $message, $icon_buttons) = @_;
    my @return = qw/- Ok Cancel Abort Retry Ignore Yes No/;
    my $result = Win32::MsgBox($message, $icon_buttons, $caption);
    return $return[$result];
    }



    John Guest

  2. Similar Questions and Discussions

    1. 8.0.0 RC5-2 Processes/Interfaces Under Windows
      I've installed this version on my Win2K machine and can connect using pgAdminIII just fine. I then installed libpqxx 2.4.2 via (i.e., for and...
    2. Making A Library of Perl Subroutines
      I am writing several subroutines that I want to make available to other programs without directly including the code in those programs. Can anyone...
    3. Off Topic: Active Perl Native Windows / cygwin perl
      I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather...
    4. Making a simple calculator with perl
      Hello, I'm a total newbie with only a few programs under my belt. Anyway, I would like to create a command line calculator. Like the one...
    5. Designing Interfaces with Perl and Perl APIs
      Hi, I am a long date perl programmer, and from time to time, I am having the same trouble: - To design interfaces for a self contained...
  3. #2

    Default Re: Anybody making Windows interfaces w/ Perl?

    On Fri, 27 Jun 2003 05:59:53 GMT, John said:
    >The sample below makes a simple message box in MS Windows. The rest of the
    >Win32 and Win32API modules includes handy interfaces to the OS, but no other
    >GUI objects like the message box (e.g., radio boxes, pull-down menus,
    >fill-in forms, etc.). Or am I missing something?
    Off the top of my head:

    Tk (on CPAN)
    Win32::GUI (on CPAN)
    WxPerl ( [url]http://wxperl.sourceforge.net[/url] )

    and you might be interested in:

    GUI Loft ( [url]http://www.bahnhof.se/~johanl/perl/Loft[/url] )
    >I am about to install and learn Visual C++ 6 and want to make sure I'm not
    >wasting my time. I would prefer to keep everything pure Perl if possible.
    >
    >[Aside: I think the TCL stuff for Perl on Unix making GUIs on X
    >Windows --is that right?]
    That would be Tk.

    --damian
    Damian James Guest

  4. #3

    Default Re: Anybody making Windows interfaces w/ Perl?

    "John" <SeeMessageBody@nospam.com> wrote in message
    news:t3RKa.14617$C83.1382932@newsread1.prod.itd.ea rthlink.net...
    > The sample below makes a simple message box in MS Windows. The rest of
    the
    > Win32 and Win32API modules includes handy interfaces to the OS, but no
    other
    > GUI objects like the message box (e.g., radio boxes, pull-down menus,
    > fill-in forms, etc.). Or am I missing something?
    perldoc tk

    on my Win machine with Activestate Perl 5.6.1 build 633 brings up docs for
    the TK module.

    widget

    when typed and entered on my command line brings up a widget demo which
    include at least some if not all of what you say is not in those Perl
    modules that you mentioned.
    >
    > I am about to install and learn Visual C++ 6 and want to make sure I'm not
    > wasting my time. I would prefer to keep everything pure Perl if possible.
    I'm unfamiliar if there exists any capability differences between those two;
    so, no comment.

    <snip>
    > ### This was done in Active Perl 5.006001
    ####
    <snipped the mentioned sample>

    I mentioned some native things in the version of Perl on my Win.

    --
    Alan.



    Alan C. Guest

  5. #4

    Default Re: Anybody making Windows interfaces w/ Perl?

    On Fri, 27 Jun 2003 05:59:53 GMT, "John" <SeeMessageBody@nospam.com>
    wrote:
    >The sample below makes a simple message box in MS Windows. The rest of the
    >Win32 and Win32API modules includes handy interfaces to the OS, but no other
    >GUI objects like the message box (e.g., radio boxes, pull-down menus,
    >fill-in forms, etc.). Or am I missing something?
    >
    >I am about to install and learn Visual C++ 6 and want to make sure I'm not
    >wasting my time. I would prefer to keep everything pure Perl if possible.
    Use Perl/Tk then.


    Helgi Briem Guest

  6. #5

    Default Thank you all! Tk doesn't look hard to learn.

    John:
    > > fill-in forms, etc.). Or am I missing something?
    "Alan C.":
    > perldoc tk
    Yep, I sure *was* missing something! :^)

    > widget
    Cool. Tk has kind of a funky look and feel, like a Java GUI, but it'll do.
    I may be looking for a book on Tk soon.


    John Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139