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

2006-04-07 Thread Roger Mayfield
ss as your Net::IRC and GUI thread don't block on database access) but the downside is the extra work involved Cheers, jez. well, considering I need to access some information before I ever start the thread, I'll just go ahead and split my database. Roger Mayfield

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] Using Threads with Win::32 and Net::IRC

2006-04-06 Thread Roger Mayfield
appreciated considering I have NO idea what the hell I'm doing, lol. Or should I try a different Mailing list? Roger Mayfield

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

2006-04-06 Thread Roger Mayfield
if I did, I could have found this solution by googling Iconic I'm sure. Well, actually I had to change it because GetPerlWindow() doesn't return an object, just a handle I had to use this within the #Main Loop: if (Win32::GUI::IsIconic($DOS)) { Win32::GUI::Hide($DOS); } Roger Mayfield

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

2006-04-06 Thread Roger Mayfield
This script uses an icon file, you'll have to provide one to play with it. Now, this works fine. When you click the tray icon, the console disappears, when you click it again, it reappears. What I want to do know is test whether the console window has been minimized so that I can then hide the window ie: minimize to tray. if ($DOS = minimized) { Win32::GUI::Hide($DOS); } Roger Mayfield

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

2006-04-05 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

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

2006-04-05 Thread Roger Mayfield
no way in the docs to 'name' a DOS window, only to get it's handle: ($DOS) = Win32::GUI::GetPerlWindow(); So, how do I test if the DOS window has been minimized? Roger Mayfield

Re: [perl-win32-gui-users] window freezes when connecting to IRC

2006-04-05 Thread Roger Mayfield
ow do you search the mailing list? That little info could prove VERY useful. Roger Mayfield

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

2006-04-05 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

Re: [perl-win32-gui-users] window freezes when connecting to IRC

2006-04-05 Thread Roger Mayfield
using threads or processes. My program will need to share data with the IRC thread, so I know forking won't work right even with SIG. I was looking at Win32::Process but I'm so confused. Anybody know of a good book/website/tutorial/example using Win32::Process? Roger Mayfield

[perl-win32-gui-users] window freezes when connecting to IRC

2006-04-04 Thread Roger Mayfield
the irc loop to get the window to update reguraly, but it didn't work either, here is my program's main loop: while (!$terminate) { $window->DoEvents(); if ($loop > 9 && $connected) { $irc->do_one_loop(); $loop = 0; } else { $loop++; } } Any suggestions? Roger Mayfield

[perl-win32-gui-users] Column Tabs in List Box

2006-03-01 Thread roger
nge the "usetabstop" to 0 then I see all my text on the line with a graphic symbol where the \t is, so it seems to be doing something. Suggestions on how to fix this or suggestions on an alternate method to get the same result would be appreciated. Also, this is the first time I've tried to use the win32 gui. Thanks, Roger