From: Apu i. <apu...@ya...> - 2006-11-29 05:08:49
|
anyone knows how I can replace the camel logo on the Main window with my smily face ? -Apu ------------------------------ Apu Islam ( E Pluribus Unum) ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited |
From: Steve L. <ste...@sc...> - 2006-11-29 09:26:41
|
This was on my "to-find-out" list :) Can you use DIBitmap for inline icons? Steve Glenn Linderman wrote: > On approximately 11/28/2006 9:08 PM, came the following characters from > the keyboard of Apu islam: >> anyone knows how I can replace the camel logo on the >> Main window with my smily face ? >> >> >> -Apu >> > Assuming $mw points to the main window, use > > $my_smily_face_icon = new Win32::GUI::Icon( $iconfile ); > $mw->SetIcon ( $my_smily_face_icon ); > |
From: Steve L. <ste...@sc...> - 2006-11-29 09:41:20
|
yes, aparantly you can :) http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=bitmapinline Steve Loughran wrote: > This was on my "to-find-out" list :) Can you use DIBitmap for inline icons? > > Steve > > Glenn Linderman wrote: >> On approximately 11/28/2006 9:08 PM, came the following characters from >> the keyboard of Apu islam: >>> anyone knows how I can replace the camel logo on the >>> Main window with my smily face ? >>> >>> >>> -Apu >>> >> Assuming $mw points to the main window, use >> >> $my_smily_face_icon = new Win32::GUI::Icon( $iconfile ); >> $mw->SetIcon ( $my_smily_face_icon ); >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > |
From: Steve L. <ste...@sc...> - 2006-11-30 12:59:39
|
It appears I was writing my emails without the following options: use strict; use Grammar; It wont happen again :) Steve > Aparantly :) Or Apparently :) > > But in a PAR context, there is little incentive to do that, vs. bundling > the file into the pp-built .exe |
From: Geoffrey S. <geo...@gm...> - 2007-05-23 19:29:19
|
I hate to bring back a nearly 6 month old thread, but is there some sort of trick to getting Win32::GUI to find icons bundled with a pp-built .exe? I built one using "pp script.pl -o script.exe -a icon.ico" but the icon only displays properly if there's a copy of it in the same directory as the executable; if the .exe file is moved to another directory it can't find the icon which should be bundled. Geoffrey On 11/29/06, Glenn Linderman <pe...@ne...> wrote: > On approximately 11/29/2006 1:41 AM, came the following characters from > the keyboard of Steve Loughran: > > yes, aparantly you can :) > > > > http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=bitmapinline > > > > Aparantly :) Or Apparently :) > > But in a PAR context, there is little incentive to do that, vs. bundling > the file into the pp-built .exe > > OK, I admit to bringing up the PAR context, but if you are looking to > bundle everything into a single file for easier distribution, PAR goes a > lot further toward that goal than BitmapInline :) > > Steve Loughran wrote: > > > >> This was on my "to-find-out" list :) Can you use DIBitmap for inline icons? > >> > >> Steve > >> > >> Glenn Linderman wrote: > >> > >>> On approximately 11/28/2006 9:08 PM, came the following characters from > >>> the keyboard of Apu islam: > >>> > >>>> anyone knows how I can replace the camel logo on the > >>>> Main window with my smily face ? > >>>> > >>>> > >>>> -Apu > >>>> > >>>> > >>> Assuming $mw points to the main window, use > >>> > >>> $my_smily_face_icon = new Win32::GUI::Icon( $iconfile ); > >>> $mw->SetIcon ( $my_smily_face_icon ); > >>> > > -- > Glenn -- http://nevcal.com/ > =========================== > A protocol is complete when there is nothing left to remove. > -- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Geoffrey Spear http://www.geoffreyspear.com/ |
From: Robert M. <rob...@us...> - 2007-05-23 20:10:32
|
Geoffrey Spear wrote: > I hate to bring back a nearly 6 month old thread, but is there some > sort of trick to getting Win32::GUI to find icons bundled with a > pp-built .exe? > > I built one using "pp script.pl -o script.exe -a icon.ico" but the > icon only displays properly if there's a copy of it in the same > directory as the executable; if the .exe file is moved to another > directory it can't find the icon which should be bundled. > > Geoffrey I've got some code in Win32::GUI::SplashScreen that attempts to work with PAR packed icon/bitmap files. I think it used to work, but it's pretty old. There's a comment that says: # try to load the splash image from the PAR_TEMP directory # this is for exes built with PAR's pp -a xxxxx.bmp ... And then goes on to do something equivalent to: my $file = 'icon.ico'; my $path = '.'; $path = $ENV{PAR_TEMP} . "/inc" if exists $ENV{PAR_TMP}; my $icon = Win32::GUI::Icon->new("$path/$file"); I'd be interested to know if it still works :-) Rob. > > On 11/29/06, Glenn Linderman <pe...@ne...> wrote: >> On approximately 11/29/2006 1:41 AM, came the following characters from >> the keyboard of Steve Loughran: >>> yes, aparantly you can :) >>> >>> http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=bitmapinline >>> >> Aparantly :) Or Apparently :) >> >> But in a PAR context, there is little incentive to do that, vs. bundling >> the file into the pp-built .exe >> >> OK, I admit to bringing up the PAR context, but if you are looking to >> bundle everything into a single file for easier distribution, PAR goes a >> lot further toward that goal than BitmapInline :) >>> Steve Loughran wrote: >>> >>>> This was on my "to-find-out" list :) Can you use DIBitmap for inline icons? >>>> >>>> Steve >>>> >>>> Glenn Linderman wrote: >>>> >>>>> On approximately 11/28/2006 9:08 PM, came the following characters from >>>>> the keyboard of Apu islam: >>>>> >>>>>> anyone knows how I can replace the camel logo on the >>>>>> Main window with my smily face ? >>>>>> >>>>>> >>>>>> -Apu >>>>>> >>>>>> >>>>> Assuming $mw points to the main window, use >>>>> >>>>> $my_smily_face_icon = new Win32::GUI::Icon( $iconfile ); >>>>> $mw->SetIcon ( $my_smily_face_icon ); >>>>> >> -- >> Glenn -- http://nevcal.com/ >> =========================== >> A protocol is complete when there is nothing left to remove. >> -- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Perl-Win32-GUI-Users mailing list >> Per...@li... >> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >> http://perl-win32-gui.sourceforge.net/ >> > > |
From: Erik K. <er...@ki...> - 2007-05-23 20:14:07
|
----- Original Message ----- From: "Geoffrey Spear" <geo...@gm...> To: <Per...@li...> Sent: Wednesday, May 23, 2007 9:29 PM Subject: Re: [perl-win32-gui-users] camel > I hate to bring back a nearly 6 month old thread, but is there some > sort of trick to getting Win32::GUI to find icons bundled with a > pp-built .exe? > > I built one using "pp script.pl -o script.exe -a icon.ico" but the -a or -i? According to the docs, there is no -a > icon only displays properly if there's a copy of it in the same > directory as the executable; if the .exe file is moved to another > directory it can't find the icon which should be bundled. Sounds logical. I assume (don't know though) that you could also put the directory of the icon in PATH or name the exact path while packing. That's typical for Windows. Same goes for running the package. When the directory of the package isn't current directory the package will only run when it is in the path. |
From: Geoffrey S. <geo...@gm...> - 2007-05-24 12:57:52
|
>And then goes on to do something equivalent to: > > my $file = 'icon.ico'; > my $path = '.'; > $path = $ENV{PAR_TEMP} . "/inc" if exists $ENV{PAR_TMP}; > > my $icon = Win32::GUI::Icon->new("$path/$file"); > > > I'd be interested to know if it still works :-) It does, except you've got a typo in the second "PAR_TEMP" that just hurt my brain trying to figure out why $path wasn't getting set. It works fine now that I found that. Thanks! On 5/23/07, Erik Kieffer <er...@ki...> wrote: > > I built one using "pp script.pl -o script.exe -a icon.ico" but the > > -a or -i? According to the docs, there is no -a The docs at http://cpan.uwinnipeg.ca/htdocs/PAR-Packer/pp.html mention the -a option to add files to the package. -i sets the app's icon, but I'm trying to add an icon to use within my program (as a NotifyIcon). Oddly enough, while the --help option to the version of pp I've got doesn't mention the -a option either, if I use the Add Packages box in tkpp to try to add my icon to the package, it throws a warning about -m being deprecated for adding non-module files to packages, and tells me to use -a instead. I think it's a case of the documentation with the binary not being up to date. -- Geoffrey Spear http://www.geoffreyspear.com/ |
From: <er...@ki...> - 2007-05-24 13:13:41
|
Quoting Geoffrey Spear <geo...@gm...>: >> > The docs at http://cpan.uwinnipeg.ca/htdocs/PAR-Packer/pp.html mention > the -a option to add files to the package. -i sets the app's icon, > but I'm trying to add an icon to use within my program (as a > NotifyIcon). Oddly enough, while the --help option to the version of For that we have the http://search.cpan.org/dist/Win32-GUI/BitmapInline.pm > pp I've got doesn't mention the -a option either, if I use the Add > Packages box in tkpp to try to add my icon to the package, it throws a > warning about -m being deprecated for adding non-module files to > packages, and tells me to use -a instead. I think it's a case of the > documentation with the binary not being up to date. I thought *YOU* made the typo :D Sorry for the lack of trust. ;) |
From: Geoffrey S. <geo...@gm...> - 2007-05-24 13:33:52
|
I've always thought that inlining bitmaps was a bit of an ugly solution, but then again I'm primarily a Mac programmer and I'm used to having everything stuck in nice packages for me. I suppose it's nice if you need to distribute .pl files that will be used as executables and you don't want to have to make sure all of the related resource files go along with them, but in my case the end users don't have Perl installed at all so I'm forced to use pp anyway. On 5/24/07, er...@ki... <er...@ki...> wrote: > Quoting Geoffrey Spear <geo...@gm...>: > > >> > The docs at http://cpan.uwinnipeg.ca/htdocs/PAR-Packer/pp.html mention > > the -a option to add files to the package. -i sets the app's icon, > > but I'm trying to add an icon to use within my program (as a > > NotifyIcon). Oddly enough, while the --help option to the version of > > For that we have the http://search.cpan.org/dist/Win32-GUI/BitmapInline.pm > > > pp I've got doesn't mention the -a option either, if I use the Add > > Packages box in tkpp to try to add my icon to the package, it throws a > > warning about -m being deprecated for adding non-module files to > > packages, and tells me to use -a instead. I think it's a case of the > > documentation with the binary not being up to date. > > > I thought *YOU* made the typo :D Sorry for the lack of trust. ;) > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Geoffrey Spear http://www.geoffreyspear.com/ |
From: Robert M. <rob...@us...> - 2007-05-24 18:52:12
|
On 24/05/07, Geoffrey Spear <geo...@gm...> wrote: > > $path = $ENV{PAR_TEMP} . "/inc" if exists $ENV{PAR_TMP}; > > > > I'd be interested to know if it still works :-) > > It does, except you've got a typo in the second "PAR_TEMP" that just > hurt my brain trying to figure out why $path wasn't getting set. It > works fine now that I found that. Thanks! Oops! That's a bug in Win32::GUI::SplashScreen - I'll have to make sure that gets fixed. Thanks, Rob. |
From: Glenn M. <Gle...@pg...> - 2007-05-24 19:20:34
|
Rob, I wasn't sure if you were actively maintaining that module or not, but I'm getting "deprecated usage" warnings because of the 'use Win32::GUI;' line. I imagine that will be easy to fix if you're cracking it open to fix the typo. Cheers, Glenn PS Apologies if this doesn't get posted to the list; I work offshore and the Network Nazis block POP3 access, so I can't use my normal email address, and then Sourceforge complains about that... -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Robert May Sent: 24 May 2007 13:52 To: Geoffrey Spear Cc: Per...@li... Subject: Re: [perl-win32-gui-users] camel On 24/05/07, Geoffrey Spear <geo...@gm...> wrote: > > $path =3D $ENV{PAR_TEMP} . "/inc" if exists $ENV{PAR_TMP}; > > > > I'd be interested to know if it still works :-) > > It does, except you've got a typo in the second "PAR_TEMP" that just > hurt my brain trying to figure out why $path wasn't getting set. It > works fine now that I found that. Thanks! Oops! That's a bug in Win32::GUI::SplashScreen - I'll have to make sure that gets fixed. Thanks, Rob. ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/ |