From: Frazier, J. J. <Joe.Frazier@Peopleclick.com> - 2004-11-23 13:00:30
|
I have to agree. I expect people would be much more likely to buy a book on Tk(as they have been buying for years) or even wxPerl because of the cross platform nature of these two products. =20 Good luck getting AS to package a cookbook with ActivePerl. They are 3 years behind on the Win32::GUI ppm. Although, if someone will spend the time working with them, it would be greatly appreciated! Joe Frazier, Jr. Senior Support Engineer Peopleclick Service Support Tel: +1-800-841-2365 E-Mail: Support@Peopleclick.com=20 > -----Original Message----- > From: per...@li...=20 > [mailto:per...@li...] On=20 > Behalf Of Jez White > Sent: Tuesday, November 23, 2004 3:52 AM > To: Alex Lee; Win32-GUI List > Subject: Re: FW: [perl-win32-gui-users] Website - Code=20 > snippets gallery >=20 > Hi, >=20 > I must admit I would buy a win32::gui cookbook:) >=20 > I think the market for a real book is a little limited though=20 > - in my view the biggest problem with win32::gui is it's=20 > exposure. I still come across developers who are using TK or=20 > web based front ends for win32 apps simply because they=20 > didn't know win32::gui existed. If for example, win32::gui=20 > was included in all activestate win32 distributions, then you=20 > would be a ready made market! >=20 > Good luck, >=20 > Cheers, >=20 > jez. >=20 > ----- Original Message ----- > From: "Alex Lee" <sim...@gm...> > To: "Win32-GUI List" <per...@li...> > Sent: Tuesday, November 23, 2004 7:10 AM > Subject: Re: FW: [perl-win32-gui-users] Website - Code=20 > snippets gallery >=20 >=20 > > Hi all: I think win32::gui cookbook is a great idea. Has anyone even > > think about trying to officially publish it. I don't mind=20 > putting out > > the money for self-publish I-universe type book and split=20 > the profit! > > ;) > > I can actually submit a few examples mysef. > > Please let me know if anyone is interested. > > > > al ;) > > > > > > On Mon, 15 Nov 2004 10:17:17 -0800, Glenn Linderman=20 > <pe...@ne...>=20 > > wrote: > >> On approximately 11/15/2004 7:29 AM, came the following=20 > characters from > >> > >> > >> the keyboard of Chris Wearn: > >> > >> > I agree that the official documentation describing each=20 > control, it's > >> > methods and properties are each described in greater=20 > detail (especially=20 > >> > the > >> > TDB ones), also a list of depreciated methods and their=20 > replacements. I=20 > >> > also > >> > note that with each build or commit to CVS, Laurent has=20 > documented more=20 > >> > and > >> > more of these... I know from personal experience that=20 > documentation is=20 > >> > the > >> > least exciting part of any project. > >> > > >> > I feel, the people best placed to document the project, are those > >> > contributing the functionality to the source, however=20 > slow it creeps=20 > >> > in. > >> > > >> > What we are tossing around here, is the idea of creating=20 > a collection=20 > >> > of > >> > both small snippets of individual control syntax, and=20 > larger working > >> > examples for all to benefit from, and is somewhat outside of the=20 > >> > official > >> > documentation. > >> > >> And this is a good idea, to augment the official documentation. > >> > >> I'll continue to lobby for all sample code to be embedded=20 > in working > >> scripts, so that people can play/modify from there. In an=20 > associated > >> text document, quoting particular snippets of code is OK, but there > >> should always be a reference to the complete script in which the > >> technique is used. (It might not hurt to point back to=20 > the document, > >> from the code, also, to keep things maintainable and in sync.) > >> > >> I've just found in the past that snippets are often=20 > described without > >> describing their underlying assumed requirements, which=20 > can be beastly > >> difficult for new users to comprehend... and then they give up... > >> whereas if everything is in working samples, there are no unstated > >> assumptions... the assumptions may not all make it into=20 > the text, but > >> they made it into the code! > >> > >> > >> > >> > The list is full of questions from new users requesting=20 > an example of=20 > >> > 'how > >> > do I add' or 'how do I make'. > >> > > >> > The question I originally started, was whether their was=20 > an existing > >> > facility or repository to easily add or post examples=20 > to, so that at=20 > >> > least > >> > they could be under 'Control' headings and not scattered=20 > throughout 3=20 > >> > years > >> > of user list. > >> > > >> > I spend an equal amount of time using PHP and have found=20 > great benefit=20 > >> > from > >> > the PHP documentation that also contains user contributed > >> > notes/snippets/examples after each command reference. I=20 > had originally > >> > thought something similar would be of great benefit to=20 > both new and=20 > >> > seasoned > >> > users of Win32::GUI > >> > > >> > Chris Wearn > >> > > >> > > >> > > >> > -----Original Message----- > >> > From: per...@li... > >> >=20 > [mailto:per...@li...]On Behalf Of > >> > Frazier, Joe Jr > >> > Sent: Monday, 15 November 2004 08:56 > >> > To: Chris Wearn > >> > Cc: Win32-GUI List > >> > Subject: RE: [perl-win32-gui-users] Website - Code=20 > snippets gallery > >> > > >> > > >> > Chris, this is a good idea, but I personally would much prefer if > >> > someone to spend their time fleshing out the official=20 > documentation. > >> > Putting examples there would be the most appropriate=20 > place and there=20 > >> > are > >> > still a lot of methods in there with "TDB". The main=20 > reason I bring > >> > this is up is that I have recently had to start really=20 > playing with=20 > >> > Java > >> > for my work and the official Javadoc stuff is horribly lite on=20 > >> > examples, > >> > (unlink most perl modules out there, which are usually=20 > fairly good). > >> > > >> > Joe Frazier, Jr. > >> > > >> > <editorial> > >> > A good example is the Date class. Many of the methods=20 > and constructors > >> > in this class are depreciated, and it points you to the=20 > Calendar Class > >> > or the DateFormat class. One would logically think that=20 > these two > >> > classes would be subclasses so that you can pass these=20 > to a method that > >> > takes a date, but no.... You have to convert to a date object > >> > explicitly. Stupid Java.... > >> > </editorial> > >> > > >> >>-----Original Message----- > >> >>From: per...@li... > >> >>[mailto:per...@li...] On > >> >>Behalf Of Chris Wearn > >> >>Sent: Monday, November 15, 2004 7:28 AM > >> >>To: Jez White > >> >>Cc: Win32-GUI List > >> >>Subject: RE: [perl-win32-gui-users] Website - Code=20 > snippets gallery > >> >> > >> >>Hiya Jez, > >> >> > >> >>I agree that a Win32::GUI cookbook would be a great idea, > >> >>available as a document that you can print out and read, > >> >>while being able to download an electronic copy, to enable > >> >>the 'cutting & pasting' of examples. > >> >> > >> >>To ease editing, add styles and colour coding, a MS Word > >> >>document would probably be the most common format. It can > >> >>then be read in Star Office, and a PDF version could=20 > also be output. > >> >> > >> >>I'm happy to do some assembly... and make a > >> >>'work-in-progress' version available via a link on my domain. > >> >> > >> >>Once we have got to various stages we can commit it to CVS on > >> >>sourceforge. > >> >> > >> >>Unless someone else with a degree in publishing, a Mac with > >> >>Quark and nothing else to do, wishes to volunteer... > >> >> > >> >>Otherwise, start emailing me content/examples... > >> >> > >> >>Chris Wearn > >> >> > >> >>-----Original Message----- > >> >>From: Jez White [mailto:je...@je...] > >> >>Sent: Monday, 15 November 2004 06:59 > >> >>To: Glenn Linderman; Chris Wearn > >> >>Cc: Win32-GUI List > >> >>Subject: Re: [perl-win32-gui-users] Website - Code=20 > snippets gallery > >> >> > >> >> > >> >> > >> >>>>There are many examples / small snippets of code that > >> >> > >> >>could serve as > >> >> > >> >>>>examples to others, we just need a place to easily store and > >> >>>>collectively showcase them. Something like a forum (I run > >> >> > >> >>one using > >> >> > >> >>>>phpBB). Is there any way of doing this on Sourceforge or > >> >> > >> >>some other > >> >> > >> >>>>place where people can paste in 'how to' snippets, or=20 > do we start > >> >>>>one. > >> >> > >> >>I too think we need a place for these snippets - a Win32::GUI > >> >>cookbook of sorts. It's a question of who is prepared to > >> >>maintain/organise it? Any offers? > >> >> > >> >> > >> >>>It is always delightful when someone offers some of the hard-won > >> >>>fruits of their labors to share with others. Thanks for > >> >> > >> >>thinking of it. > >> >> > >> >>>This is probably a nice snippet of code... but it isn't complete > >> >>>enough to run, so I can't tell for sure. Probably adding a > >> >> > >> >>few lines > >> >> > >> >>>at the top to use strict; use warnings; use Win32::GUI; and to > >> >>>initialize the > >> >> > >> >>I've created an example, and have added to CVS - the code is > >> >>also below. The only thing you need to do is to have a bitmap > >> >>of some description - I was going to add a bitmap to CVS so > >> >>the script would run, but I don't think the world is ready > >> >>for my art skills:) > >> >> > >> >>Cheers, > >> >> > >> >>jez. > >> >> > >> >>------------- > >> >>use Win32::GUI; > >> >>use strict; > >> >> > >> >>my ($width,$height); > >> >>my $mainwin; > >> >> > >> >>#try to load the splash bitmap from the exe that is running > >> >>my $splashimage=3D new Win32::GUI::Bitmap('SPLASH'); unless > >> >>($splashimage) { > >> >> #bitmap is not in exe, load from file > >> >> $splashimage=3D new Win32::GUI::Bitmap('SPLASH.bmp'); > >> >> die 'could not find splash bitmap' unless $splashimage; > >> >> #get the dimensions of the bitmap > >> >> ($width,$height) =3D $splashimage->Info(); > >> >> } > >> >> > >> >>#create the splash window > >> >>my $splash =3D new Win32::GUI::Window ( > >> >> -name =3D> "Splash", > >> >> -text =3D> "Splash", > >> >> -height =3D> $height, > >> >> -width =3D> $width, > >> >> -left =3D> 100, > >> >> -top =3D> 100, > >> >> -addstyle =3D> WS_POPUP, > >> >> -popstyle =3D> WS_CAPTION | WS_THICKFRAME, > >> >> -addexstyle =3D> WS_EX_TOPMOST > >> >>); > >> >> > >> >>#create a label in which the bitmap will be placed > >> >>my $bitmap =3D $splash->AddLabel( > >> >> -name =3D> "Bitmap", > >> >> -left =3D> 0, > >> >> -top =3D> 0, > >> >> -width =3D> $width, > >> >> -height =3D> $height, > >> >> -bitmap =3D> $splashimage, > >> >>); > >> >>$bitmap->SetImage( $splashimage ); > >> >> > >> >>#center the splash and show it > >> >>$splash->Center; > >> >>$splash->Show(); > >> >>#call do events - not Dialog - this will display the window > >> >>and let us #build the rest of the application. > >> >>Win32::GUI::DoEvents; > >> >> > >> >>#A good way of building your application is to keep > >> >>everything in packages, and eval those #into scope in this > >> >>phase. In this case, we'll create the main window and sleep > >> >>to simulate #some work. > >> >>my $string =3D q ` > >> >> $mainwin =3D new Win32::GUI::Window ( > >> >> -name =3D> "Main", > >> >> -text =3D> "Main window", > >> >> -height =3D> 400, > >> >> -width =3D> 400, > >> >> ); > >> >> sleep(2); > >> >> $mainwin->Center(); > >> >> $mainwin->Show(); > >> >> `; > >> >>#eval the code and report any errors > >> >>eval $string; > >> >>if ($@) { > >> >> my $message =3D $@; > >> >> Win32::GUI::MessageBox($splash, $message ,"Build Error", > >> >>MB_OK | MB_ICONWARNING); > >> >> } > >> >>#hide the splash and enter the Dialog phase $splash->Hide; > >> >>Win32::GUI::Dialog(); > >> >> > >> >> > >> >> > >> >> > >> >> > >> >>------------------------------------------------------- > >> >>This SF.Net email is sponsored by: InterSystems CACHE FREE > >> >>OODBMS DOWNLOAD - A multidimensional database that combines > >> >>robust object and relational technologies, making it a > >> >>perfect match for Java, C++,COM, XML, ODBC and JDBC. > >> >>www.intersystems.com/match8 > >> >>_______________________________________________ > >> >>Perl-Win32-GUI-Users mailing list > >> >>Per...@li... > >> >>https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > >> >> > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.Net email is sponsored by: InterSystems CACHE > >> > FREE OODBMS DOWNLOAD - A multidimensional database that combines > >> > robust object and relational technologies, making it a=20 > perfect match > >> > for Java, C++,COM, XML, ODBC and JDBC.=20 > www.intersystems.com/match8 > >> > _______________________________________________ > >> > Perl-Win32-GUI-Users mailing list > >> > Per...@li... > >> > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.Net email is sponsored by: InterSystems CACHE > >> > FREE OODBMS DOWNLOAD - A multidimensional database that combines > >> > robust object and relational technologies, making it a=20 > perfect match > >> > for Java, C++,COM, XML, ODBC and JDBC.=20 > www.intersystems.com/match8 > >> > _______________________________________________ > >> > Perl-Win32-GUI-Users mailing list > >> > Per...@li... > >> > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > >> > > >> > > >> > > >> > >> -- > >> Glenn -- http://nevcal.com/ > >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > >> Having identified a vast realm of ignorance, Wolfram is=20 > saying that much > >> of this realm lies forever outside the light cone of human=20 > knowledge. > >> -- Michael Swaine, Dr Dobbs=20 > Journal, Sept 2002 > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: InterSystems CACHE > >> FREE OODBMS DOWNLOAD - A multidimensional database that combines > >> robust object and relational technologies, making it a=20 > perfect match > >> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > >> _______________________________________________ > >> Perl-Win32-GUI-Users mailing list > >> Per...@li... > >> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > >> > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products=20 > from real users. > > Discover which products truly live up to the hype. Start=20 > reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Perl-Win32-GUI-Users mailing list > > Per...@li... > > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. > Discover which products truly live up to the hype. Start reading now.=20 > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >=20 |
From: Frazier, J. J. <Joe.Frazier@Peopleclick.com> - 2004-11-23 13:11:46
|
Disclaimer: I have only used Tk a few times, and HATED the look and feel. This is the reason I switched to Win32::GUI. =20 I have never used wxPerl/wxWindows, but it is a great tool from what I have heard/read. From what I have seen in tuts, this is closer to Tk in style and is a bit more verbose and complex than Win32::GUI, but I could be wrong on that as I am doing a superficial glance. The past year has seen a hugh increase in Win32::GUI functionality thanks Laurent Rocher and Steve Pick especially, among the many others who have hacked at the XS code. Joe Frazier, Jr. Senior Support Engineer Peopleclick Service Support Tel: +1-800-841-2365 E-Mail: Support@Peopleclick.com=20 > -----Original Message----- > From: Frazier, Joe Jr=20 > Sent: Tuesday, November 23, 2004 8:00 AM > To: 'Jez White'; Alex Lee; Win32-GUI List > Subject: RE: FW: [perl-win32-gui-users] Website - Code=20 > snippets gallery >=20 > I have to agree. I expect people would be much more likely=20 > to buy a book on Tk(as they have been buying for years) or=20 > even wxPerl because of the cross platform nature of these two=20 > products. =20 >=20 > Good luck getting AS to package a cookbook with ActivePerl. =20 > They are 3 years behind on the Win32::GUI ppm. Although, if=20 > someone will spend the time working with them, it would be=20 > greatly appreciated! >=20 > Joe Frazier, Jr. > Senior Support Engineer >=20 > Peopleclick Service Support > Tel: +1-800-841-2365 > E-Mail: Support@Peopleclick.com=20 |
From: Brian M. <bmi...@di...> - 2004-11-26 00:55:00
|
I'd be a willing test subject as I'm trying to learn Win32::GUI in my spare time. I can already suggest that a chapter on "The GUI Loft" for interface design would be nice. Brian Millham Tommy, Helen and PakaZhaan This message traveled at least 44,000 miles to reach you! bmi...@di... -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Alex Lee Sent: Tuesday, November 23, 2004 12:32 PM To: Win32-GUI List Subject: Re: FW: [perl-win32-gui-users] Website - Code snippets gallery I think you guys are right. There probably is a very limited market, but on the other hand I think a book itself will generate publicity. This is how I see it as and why i think publishing is useful. 1a) the book would generate is own publicity and with this some legetimicy - thus I think it would also be easier to convince Activestate and other repositry of its importance. It is surprising to me that activestate is taking such a non-active role in this module because more people using win32::gui could boost ther "perlapp" distrbution as well. 1) There are many perl "hackers" out there, and many I believe would not mind having the capapibility to code a windows program. I think, due to exposure, that some of them has never even heard of this module. A book could just be enough to spark their interest. 2) the book could lure people just starting out. I think most people go towards vb or c++ because perl does not have, or they don't think have the capibility to code for windows app. 2b) tk is not win32::gui 3) Besides the book could be title something like programming windows app with perl, which could be more general and catchy. 4) its fun. I say lets not care about how many books we can sell. As long as I can sell about 15 and make back the initial invenstment I would be cool with that ;) so please contact me if you anyone is interested, cause I am seriously thinking about doing this - just need a couple of more guys/gal to help out. al ;) On Tue, 23 Nov 2004 08:51:56 -0000, Jez White <je...@je...> wrote: > Hi, > > I must admit I would buy a win32::gui cookbook:) > > I think the market for a real book is a little limited though - in my view > the biggest problem with win32::gui is it's exposure. I still come across > developers who are using TK or web based front ends for win32 apps simply > because they didn't know win32::gui existed. If for example, win32::gui was > included in all activestate win32 distributions, then you would be a ready > made market! > > Good luck, ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-0, 11/23/2004 Tested on: 11/25/2004 7:54:19 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com |
From: <Jos...@co...> - 2004-11-29 21:30:20
|
Hello all, When I was trying to learn how to use threads with Win32::Gui, I got help from a lot of people on this list. I wrote this code as a way to test it. Basically without the thread when the sleep command runs the window become unresponsive, with threads you can keep doing things to the window. use Win32::GUI; use threads; use vars qw( $MainWin ); $howlong = 180; $MainWin = new Win32::GUI::Window( -name => "MainWin", -text => "Fork Test", -width => 500, -height => 700, -left => 100, -top => 100, -menu => $Menu, -font => $Font, ); $MainWin->AddButton( -name => "Button1", -text => "TEST", -align => center, -valign => center, -left => 350, -top => 10, ); $RTF = $MainWin->AddRichEdit( -name => "RTF", -left => 10, -top => 50, -width => $MainWin->ScaleWidth-20, -height => $MainWin->ScaleHeight-70, -multiline => 1, -addstyle => ES_READONLY, ); $MainWin->Show(); Win32::GUI::Dialog(); sub MainWin_Terminate { return -1; } sub Button1_Click { $MainWin->Button1->Disable(); $info = "I can send stuff"; threads->create(\&do_stuff, $info)->detach; } sub do_stuff { $RTF->ReplaceSel("Hello I am the child process and like any child I'm going to sleep while my parent keeps working.\r\n"); $RTF->ReplaceSel("So go ahead an minimize the window, move it, go to other windows and then back to this one.\r\n"); $RTF->ReplaceSel("My parent will do all the work.\r\n"); $RTF->ReplaceSel("$_[0].\r\n"); $MainWin->Update(); $MainWin->DoEvents(); sleep($howlong); $RTF->ReplaceSel("Finished sleeping\r\n"); $MainWin->Button1->Enable(); } |---------+------------------------------------------------> | | "Jez White" | | | <je...@je...> | | | Sent by: | | | per...@li...ur| | | ceforge.net | | | | | | | | | 11/28/2004 07:09 AM | | | | |---------+------------------------------------------------> >----------------------------------------------------------------------------------------------------------| | | | To: "Harlan Carvey" <key...@ya...>, "Alex Lee" <sim...@gm...>, "Win32-GUI List" | | <per...@li...> | | cc: (bcc: Joseph Vieira/DMR/CA) | | Subject: Re: FW: [perl-win32-gui-users] Website - Code snippets gallery | >----------------------------------------------------------------------------------------------------------| Hi, > I can put together GUIs...been doing it in Java, Tk, > and using Win32::GUI. One thing I'd be interested in > would be how to write a Windows app that has a GUI > that responds when you click buttons, but the > underlying activities/background processes continue to > run. This is doable by using threads - you will probably better of using the latest version of Perl (5.8.4?) as you can, since threading is generally weak in early versions. Win32::gui seems fine with threads since I've been able to create C threads (via an xs module) which were able to fire events in the GUI via windows SendMessages. Cheers, jez. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |