RE: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Piske, Harald
sub Exit_Click { exit; } this works, pretty much like the engine stops if you hold the brake, put in any gear and release the clutch. The way it was designed to be is to return -1, which tells Win32::GUI to exit the message loop and return from the Win32::GUI::Dialog() call back to your

[perl-win32-gui-users] keeping a window open

2001-05-11 Thread Chris Etzel
Ok, it may be that I have hacking at my script so long I am cross-eyed, but it is too much fun to stop now. I figured the best way to learn the Win32::GUI was to write a cool little toolbar with a couple of my most used apps on it. It floats and brings up my apps like it should, but it closes af

RE: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Peter Eisengrein
Do you have the Win::GUI::Dialog(); statement in there? -Original Message- From: Chris Etzel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2001 8:03 PM To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] keeping a window open Ok, it may be that I have h

Re: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Johan Lindstrom
Chris wrote: Ok, it may be that I have hacking at my script so long I am cross-eyed, but it is too much fun to stop now. I figured the best way to learn the Win32::GUI was to write a cool little toolbar with a couple of my most used apps on it. It floats and brings up my apps like it should, bu

Re: [perl-win32-gui-users] Re: DragDrop.pm and new Oasis release

2001-05-11 Thread Johan Lindstrom
Hirosi Taguti wrote: I've just tried. The demo program in the POD printed, "Initial state : accepts drops: 0", and memory vioration occured, says, pgm 0x01d61c6a accessed 0x, cann't become as read... That's weird. I just call the DragAcceptFiles() function to tell the window that it

Re: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Chris Etzel
yes. Here is the code. It's messy, but commented ... use Win32::GUI; #($DOS) = Win32::GUI::GetPerlWindow(); # Win32::GUI::Hide($DOS); # this is basically a test to learn Win32::GUI my $Toolbar=Win32::GUI::Window->new( -name=>'Toolbar', -size=>[600,75], -title=>"PERL ToolBar",

RE: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Peter Eisengrein
replace exec with system and it works. exec tells perl to run something and quit. -Original Message- From: Chris Etzel [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2001 9:38 PM To: perl-win32-gui-users@lists.sourceforge.net Subject: Re: [perl-win32-gui-users] keeping a window open y

RE: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Jeremy Blonde
You are going to want to change 'exec' to 'system'. That should take care of the problem. Check the 'perlfunc' section of the Perl documentation to note the differences between 'exec' and 'system'. Jeremy Blonde -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf

RE: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Frazier, Joe Jr
>perldoc -f exec exec LIST exec PROGRAM LIST The `exec()' function executes a system command *AND NEVER RETURNS* - use `system()' instead of `exec()' if you want it to return. It fails and returns FALSE only if the command does not exist *and* it is executed

[perl-win32-gui-users] Minimized GUI windows fall asleep

2001-05-11 Thread Peter Eisengrein
Anyone had a problem with a Window that "falls asleep" if it has been minimized for a while. I have this problem and it takes quite a while (> 10 minutes sometimes) for the system to return it when it is restored. This is especially prevalent in Win98 but have also seen it on NT4.0. Is there a fix

Re: [perl-win32-gui-users] keeping a window open

2001-05-11 Thread Chris Etzel
That did it. Thanks! Chris - Original Message - From: "Frazier, Joe Jr" <[EMAIL PROTECTED]> To: Sent: Friday, May 11, 2001 9:11 AM Subject: RE: [perl-win32-gui-users] keeping a window open >perldoc -f exec exec LIST exec PROGRAM LIST The `exec()' function executes a system

RE: [perl-win32-gui-users] Minimized GUI windows fall asleep

2001-05-11 Thread Piske, Harald
Never had that at all, and I love to keep my taskbar stuffed with around 15 open apps, 10 of which are min'd while I deal with 3 of the other 5. Even on mon mornings, after around 64 hrs of win-dozing, they come up normally ... that is, as painfully slow as is usual for this OS ;-) There must be s

RE: [perl-win32-gui-users] Minimized GUI windows fall asleep

2001-05-11 Thread Peter Eisengrein
Well, I'd believe the memory problem before anything else. This particular script is quite hungry and eats up a whopping 22MB+. Heck, that's even more than Outlook! Thanks for the food for thought. > -Original Message- > From: Piske, Harald [mailto:[EMAIL PROTECTED] > Sent: Friday, May 11,

[perl-win32-gui-users] Win32::GUI::Icon and Win32::Console - an icon for a console

2001-05-11 Thread Jeremy Aiyadurai
Hi all, Thankyou for your help so far. how do i get an icon to work for a console window...eg. i want to get rid of the console-window-dos-prompt icon when i run my console program. Thankyou Jeremy favicon.ico Description: Binary data

[perl-win32-gui-users] Win32::GUI::Label

2001-05-11 Thread Jeremy Aiyadurai
Hi all, Thankyou for your help so far. If you have not seen my previous email "about the console icons" please do so. my question is, I have made a bmp to cover the entire background of a window. how do I make all the labels transparent, to blend with the background image? Thankyou Jeremy

RE: [perl-win32-gui-users] Win32::GUI::Label

2001-05-11 Thread Jeremy Blonde
I struggled for an entire night trying to figure this out. ;-) Actually, I was trying to mimic Winamp's skins and while I'm not quite there, I can "skin" my GUI (okay, so it may be cheesy but it was fun to do). Here's how I did it: Create the window, create a label (the size of the window), fill

Re: [perl-win32-gui-users] Win32::GUI::Label

2001-05-11 Thread Marjolein Katsma
Now that reminds me... I have the exact opposite problem: When using a bitmap image on a button, how do I make the bitmap transparent? There is never transparency info in a bitmap as such, but apparently, given the right inforrmation, windows will treat the color of the pixel in the lower left