[perl-win32-gui-users] CoolBar

2006-03-22 Thread Octavian Rasnita
Hi, I have downloaded and tried the experimental Win32::GUI::Coolbar module and I have tested the included demo program, but it doesn't work. It gives this error: Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at Coolbar.pm line 178. at D:/usr/site/lib/Win32/GUI.pm line 450.

RE: [perl-win32-gui-users] CoolBar

2006-03-22 Thread Jeremy White
I have downloaded and tried the experimental Win32::GUI::Coolbar module and I have tested the included demo program, but it doesn't work. It gives this error: Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at Coolbar.pm line 178. at D:/usr/site/lib/Win32/GUI.pm line 450.

Re: [perl-win32-gui-users] CoolBar

2006-03-22 Thread Octavian Rasnita
From: Jeremy White [EMAIL PROTECTED] I have downloaded and tried the experimental Win32::GUI::Coolbar module and I have tested the included demo program, but it doesn't work. It gives this error: Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at Coolbar.pm line 178. at

Re: [perl-win32-gui-users] CoolBar

2006-03-22 Thread Jeremy White
This is perl, v5.8.7 built for MSWin32-x86-multi-thread (with 7 registered patches, see perl -V for more detail) D:\diverse\perl modules\win32\coolbar_0_01perl -MWin32::GUI 9 -e1 Win32::GUI version 9 required--this is only version 1.03. BEGIN failed--compilation aborted. Odd - works

[perl-win32-gui-users] threads error

2006-03-22 Thread Octavian Rasnita
Hi, I have tried the following start of program: use strict; use threads; use Win32::GUI; use Win32::Internet; use Compress::Zlib; my $thread = threads-new(\download); ###$thread-join(); $thread-detach(); my $exit; $SIG{INT} = $SIG{BREAK} = $SIG{HUP} = sub {$exit++}; alarm(0); my $Win =

Re: [perl-win32-gui-users] CoolBar

2006-03-22 Thread Octavian Rasnita
From: Jeremy White [EMAIL PROTECTED] Odd - works for me - see attached image - what OS you using? I'm using 5.8.7 and Win32::GUI 1.03 (albeit built from CVS - but I can't see that being the difference) Cheers, I use Windows 2000. Here is the version of Win32::GUI::Coolbar:

RE: [perl-win32-gui-users] threads error

2006-03-22 Thread Plum, Jason
Ah... Your problem is that you are using a indicator (aka semaphore) to stop the child thread. This semaphore is NOT a shared variable as it stands, thus causeing the problem. Solution: Use threads::shared; My $exit : shared; Try that :) Jason P. -ps, sry listfellows, I forgot to stick you

Re: [perl-win32-gui-users] threads error

2006-03-22 Thread Octavian Rasnita
Ok, I have tried using threads::shared, but with no effect. I am not able to close it. Here is the program: use strict; use threads; use threads::shared; use Win32::GUI; my $exit : shared; $SIG{INT} = $SIG{BREAK} = $SIG{HUP} = sub {$exit++}; my $thread = threads-new(\download); my $Win =

RE: [perl-win32-gui-users] threads error

2006-03-22 Thread Plum, Jason
Increment the $exit var inside of Win_Terminate: {$exit++; -1} -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:32 AM To: Plum, Jason; perl-win32-gui-users@lists.sourceforge.net Subject: Re: [perl-win32-gui-users] threads error Ok,

Re: [perl-win32-gui-users] threads error

2006-03-22 Thread Octavian Rasnita
Hmm, strange, I already tried that. Now I've done it again and I see that it works. However, If I put a sleep(10) in the subroutine which runs in a separate thread, the program is not closed for 10 seconds. Is there a way to force closing the program immediately even if it should wait for a

Re: [perl-win32-gui-users] threads error

2006-03-22 Thread Jeremy White
Hmm, strange, I already tried that. Now I've done it again and I see that it works. However, If I put a sleep(10) in the subroutine which runs in a separate thread, the program is not closed for 10 seconds. Is there a way to force closing the program immediately even if it should wait for a

RE: [perl-win32-gui-users] threads error

2006-03-22 Thread Plum, Jason
You could also call $Win-Hide() before calling thread-join(), which would give the appearance** that the program had ended. -Original Message- From: Jeremy White [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 12:21 PM To: [EMAIL PROTECTED]; Plum, Jason;

Re: [win32gui] [perl-win32-gui-users] CoolBar

2006-03-22 Thread Robert May
Octavian Rasnita wrote: I have downloaded and tried the experimental Win32::GUI::Coolbar module and I have tested the included demo program, but it doesn't work. It gives this error: Can't find 'BTNS_SHOWTEXT' in package 'Win32::GUI::Coolmenu' used at Coolbar.pm line 178. at

Re: [win32gui] Re: [perl-win32-gui-users] DPI and fonts

2006-03-22 Thread Robert May
[Description of problems with sizing labels for differing DPI screens] Is there any better solution than just making the labels excessively tall and wide to make sure everything from normal to large fits? Is it not possible to size them dynamically? I'm guessing that there must be a way to

Re: [win32gui] Re: [perl-win32-gui-users] DPI and fonts

2006-03-22 Thread Robert May
Robert May wrote: Here are a couple of references to get you started (urls may wrap): http://msdn.microsoft.com/library/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/getdialogbaseunits.asp