Re: [perl-win32-gui-users] DOS Window minimized?

2006-04-06 Thread Roger Mayfield
I know you can test if a Win32::GUI window has been minimized, but can you run a sub if a DOS window has been minimized? Roger Mayfield ok, I found a method within the Win32::GUI called IsVisible to test whether the window is visible or not, but this means whether the window is hidden or

[perl-win32-gui-users] Disabling default action for LWIN/RWIN?

2006-04-06 Thread Steve Loughran
Hi all Is there a way to disable the LWIN/RWIN default action of popping up the windows start menu? (and how about enabling them again afterwards?) Any pointers would be helpful. Many thanks in advance. Steve

Re: [perl-win32-gui-users] DOS Window minimized?

2006-04-06 Thread Roger Mayfield
Glenn Linderman wrote: Console is the correct name for what you are calling a DOS window. That might help you find relevant documentation. However, consoles are quite different in behavior than other windows, apparently even having their own process to handle them, and the message sequence

RE: [perl-win32-gui-users] DOS Window minimized?

2006-04-06 Thread Peter Eisengrein
if ($DOS = minimized) { Win32::GUI::Hide($DOS); } Try if ($DOS-IsIconic) { Win32::GUI::Hide($DOS); }

RE: [perl-win32-gui-users] DOS Window minimized?

2006-04-06 Thread Jason Brunette
You are the man! That worked! Now, can someone further explain what an Iconic window is? I would have never had thought that Iconic meant minimized and if I did, I could have found this solution by googling Iconic I'm sure. In Windows 3.1 and earlier, running programs minimized to icons

[perl-win32-gui-users] Using Threads with Win::32 and Net::IRC

2006-04-06 Thread Roger Mayfield
Okay, I've almost got Win32::GUI working with Net::IRC using threads. I'm getting an error though and I have no idea what it means: thread failed to start: DBD::SQLite::db table_info failed: handle 2 is owned by thread 2240bc not current thread 2270a2c (handles can't be shared between threads

RE: [perl-win32-gui-users] Using Threads with Win::32 and Net::IRC

2006-04-06 Thread Lloyd, Steve
The only way I have got this to work is to open the database connection in the thread. Steve Lloyd http://www.basgetti.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger Mayfield Sent: Thursday, April 06, 2006 2:23 PM Cc:

RE: [perl-win32-gui-users] Using Threads with Win::32 and Net::IRC

2006-04-06 Thread Plum, Jason
Roger, Steve is right. As a user of SQLite, I know that the DB handles are not thread safe, and you will need to move the opening context into each of the threads, not globally copying it. Keep in mind that there may be certain delays in place if the 2 threads access the DB at the same time. I

Re: [perl-win32-gui-users] Using Threads with Win::32 and Net::IRC

2006-04-06 Thread Roger Mayfield
Roger, Steve is right. As a user of SQLite, I know that the DB handles are not thread safe, and you will need to move the opening context into each of the threads, not globally copying it. Keep in mind that there may be certain delays in place if the 2 threads access the DB at the same time. I

[perl-win32-gui-users] sharing objects

2006-04-06 Thread Octavian Rasnita
Hi, I am trying to create a program using Win32::GUI that uses more threads. A few threads should connect to a server and download data permanently, and other threads should updated some list views with that data For doing this I need to use threads::shared and share some variables like $Win and