Ask a Question related to PERL Miscellaneous, Design and Development.
-
John #1
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
-
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... -
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... -
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... -
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... -
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... -
Damian James #2
Re: Anybody making Windows interfaces w/ Perl?
On Fri, 27 Jun 2003 05:59:53 GMT, John said:
Off the top of my head:>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?
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] )
That would be Tk.>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?]
--damian
Damian James Guest
-
Alan C. #3
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> The sample below makes a simple message box in MS Windows. The rest ofother> Win32 and Win32API modules includes handy interfaces to the OS, but noperldoc tk> GUI objects like the message box (e.g., radio boxes, pull-down menus,
> fill-in forms, etc.). Or am I missing something?
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'm unfamiliar if there exists any capability differences between those two;>
> 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.
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
-
Helgi Briem #4
Re: Anybody making Windows interfaces w/ Perl?
On Fri, 27 Jun 2003 05:59:53 GMT, "John" <SeeMessageBody@nospam.com>
wrote:
Use Perl/Tk then.>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.
Helgi Briem Guest
-
John #5
Thank you all! Tk doesn't look hard to learn.
John:
"Alan C.":> > fill-in forms, etc.). Or am I missing something?Yep, I sure *was* missing something! :^)> perldoc tk
Cool. Tk has kind of a funky look and feel, like a Java GUI, but it'll do.> widget
I may be looking for a book on Tk soon.
John Guest



Reply With Quote

