Re: [perl-win32-gui-users] Shipping resources with your exe

2004-02-18 Thread Steve Pick
I'd find this functionality kinda handy. Loading resources from the exe is very simple, and it would not be too difficult to extend the Win32::GUI::Bitmap, Icon, etc. objects to accept an additional argument that indicates that the resource should be loaded from the exe rather than from a real f

Re: [perl-win32-gui-users] Status bar Parts method bug.

2004-02-15 Thread Steve Pick
Hi Jez Ok, noted. Interesting. I'll look into this on Monday. Steve - Original Message - From: Jez White To: Win32-GUI Sent: Sunday, February 15, 2004 10:07 AM Subject: [perl-win32-gui-users] Status bar Parts method bug. Hi, I've found a bug when using the parts method

Re: [perl-win32-gui-users] Win32::FileOp Erro with Win32::GUI

2004-01-25 Thread Steve Pick
... } If that doesn't work, you can hook the MouseMove event using the Hook Event Model: $button->Hook(0x0200, \&mousemovehandler); Steve - Original Message - From: [EMAIL PROTECTED] To: Jez White ; Steve Pick ; perl-win32-gui-users@lists.sourceforge.net Sent:

[perl-win32-gui-users] CVS commit

2004-01-24 Thread Steve Pick
In this commit: AbsLeft and AbsTop now can take arguments: AbsLeft(10) sets the absolute left co-ordinate of a window to 10 pixels, for example. GetEvent(name) will return the coderef for the specified NEM event handler. "name" should be an event name like "Resize". SetEvent(name, handler) will

Re: [perl-win32-gui-users] Win32::FileOp Erro with Win32::GUI

2004-01-24 Thread Steve Pick
lthough he assumedly reads this list every now and again to see how people are abusing his babies, he hasn't posted in a very long time. Steve - Original Message - From: [EMAIL PROTECTED] To: Steve Pick ; perl-win32-gui-users@lists.sourceforge.net Sent: Sunday, January 2

Re: [perl-win32-gui-users] Win32::FileOp Erro with Win32::GUI

2004-01-24 Thread Steve Pick
Hi Ramy, Could you verify that Win32::GUI is causing this by testing without GUI code running. Create an application that uses threads and Win32::FileOp without Win32::GUI loaded and see if the problem still occurs. If so, it's out of our hands and is a fault in Win32::FileOp. A lot of modules

Re: [perl-win32-gui-users] Outlook email question...

2004-01-24 Thread Steve Pick
Outlook email question...Hi, No, I don't know how to use CDO and there's no Perl modules that I can find for handling it. However, since CDO is a layer on top of OLE, you might be able to use OLE to do what you want. There's a Perl module for handling OLE available: http://search.cpan.org/~gsar

Re: [perl-win32-gui-users] Accelerator bug?

2004-01-22 Thread Steve Pick
ear. Steve - Original Message - From: "Glenn Linderman" <[EMAIL PROTECTED]> To: "Steve Pick" <[EMAIL PROTECTED]> Cc: "Win32 GUI Users" Sent: Wednesday, January 21, 2004 9:29 PM Subject: Re: [perl-win32-gui-users] Accelerator bug? > Thanks Stev

Re: [perl-win32-gui-users] Accelerator bug?

2004-01-21 Thread Steve Pick
own arguments. I can't see that that would be a good plan or > > any particular practical use for it. An example would be nice. > > > > The other points, I'm looking into. > > > > Steve > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED]

Re: [perl-win32-gui-users] ProgressBar inside StatusBar dont work with Timer

2004-01-21 Thread Steve Pick
Hi, Yep you've made a slight error - you've neglected to tell the progressbar where to be. In my example, I had a resize event for the main window (though it could be for the statusbar if you like) that sets the position of the progress bar in the statusbar by getting the co-ordinates of the part

Re: [perl-win32-gui-users] Accelerator bug?

2004-01-20 Thread Steve Pick
> Thinking about it, it would be nice to be able to do this: > > $mw->btButton->Change(-events => {Click => sub {return -1}}); There's nothing wrong with the concept and the implementation might actually be pretty simple (all I think it needs is to bitwise-OR in the constant that says "yes, captur

Re: [perl-win32-gui-users] Accelerator bug? Labels & freeform windows

2004-01-20 Thread Steve Pick
esult. Steve - Original Message - From: "Jez White" <[EMAIL PROTECTED]> To: "Steve Pick" <[EMAIL PROTECTED]>; Sent: Tuesday, January 20, 2004 7:29 PM Subject: Re: [perl-win32-gui-users] Accelerator bug? > Indeed he has... > > What events are missing -

Re: [perl-win32-gui-users] Accelerator bug?

2004-01-20 Thread Steve Pick
Aldo's been silent for a while. Exactly what events are missing? We're running out of space in the NEM to add new events (checking if events are set is based on a 32-bit mask, and most of the bits are used), but I'm sure that's easy to get round. The NEM is probably faster than the OEM, though I'

Re: [perl-win32-gui-users] New ListView Methods

2004-01-17 Thread Steve Pick
Committed the changes to 665-Fix. Steve - Original Message - From: "Glenn W Munroe" <[EMAIL PROTECTED]> To: Cc: "Steve Pick1" <[EMAIL PROTECTED]>; "Steve Pick2" <[EMAIL PROTECTED]>; "Laurent ROCHER" <[EMAIL PROTECTED]> Sent: Saturday, January 17, 2004 3:37 PM Subject: [perl-win32-gui-us

Re: [perl-win32-gui-users] Scroll bar example

2004-01-16 Thread Steve Pick
Oh, sorry, bugfix, line 83 add: $scrollarea->Left(0 - $scrollwindow->ScrollPos(0)); Helps if you keep tracking the scrollbar during resize :) This stops weird behaviour if you scroll then resize the window. Steve - Original Message - From: Jez White To: Stephen Pick ; Win32-GU

Re: [perl-win32-gui-users] Scroll bar example

2004-01-16 Thread Steve Pick
"is it possible to use a scroll bar within a window, and not on one of it's edges?" Yes, it is. Although I did not implement this yet. What you get when you do it is one of those scrollbars where the scroll handle blinks on focus. It is theoretically possible to add scrollbars to anything, but

Re: [perl-win32-gui-users] Scroll bar example

2004-01-16 Thread Steve Pick
Sorry, I have not thrown any weight towards the discussion on Select(-1) et al, personally I would disagree that it is counter-intuitive, as user functions such as this one rarely behave like Perl arrays do anyway. I would say that Select(-1) is perfectly viable, but for readability I would say

Re: [perl-win32-gui-users] Avoiding applications hanging?

2004-01-15 Thread Steve Pick
Hi Nigel, You need select()! It's the best thing in the world (honest). The following routine will check for activity on the socket "MYSOCKET" (you can change this, if you want to pass a socket as an argument, just use scalars instead of barewords for socket handles, and pass the socket like a no

[perl-win32-gui-users] Yet Another CVS Commit...

2004-01-15 Thread Steve Pick
Hello, me again... Since some people mentioned window scrollbars in the list a while back, I decided to implement some functions to make them actually work. I've also added the relevant constants for scrollbars and statusbars, fixed the bug with $window->Result(x) (thanks to Glenn Linderman), and

[perl-win32-gui-users] CVS: New statusbar methods added

2004-01-14 Thread Steve Pick
Hi, You'll all be pleased to know that I've enhanced the StatusBar object greatly. Here's the documentation for all the new methods for your status bars: Parts([x1, x2, x3...]) # Divides the statusbar into sections. The list of co-ordinates define the # right-hand edge of each part. #

Re: [perl-win32-gui-users] Intermediate release of Win32::GUI

2004-01-13 Thread Steve Pick
Before you build a new PPM, let me fix all the broken and/or horrible example code :) I don't know where half of the examples in the current PPM came from, but a lot of them don't work and I'm in the process of fixing them. Steve - Original Message - From: Laurent ROCHER To: p

[perl-win32-gui-users] CVS commit

2004-01-13 Thread Steve Pick
Hi, In this update: - GUI.xs : Made ProgressBar aware of -foreground and -background colour settings Example: my $progressbar = new Win32::GUI::ProgressBar($mainwindow, -name => "PB1", -left => 0, -top => 0, -width => 100, -height => 20, -foreground => [255,0,0], # Red.

Re: [perl-win32-gui-users] General Perl Text Extraction doubt

2004-01-09 Thread Steve Pick
Hi, I suggest you obtain HTML::Parser from CPAN (it might be included with ActivePerl - dont know). http://search.cpan.org You're probably going to need to be VERY accomplished to acheive something like this :/ while it's pretty easy to regex out phone numbers and things, it's not easy to obtain

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

2004-01-09 Thread Steve Pick
Hi chris. I recommend you download my plugin Winamp track-spamming perl script for XChat (www.xchat.org) from http://baxpace.com/?page=projects and look at the code. It obtains the title from the current winamp window title, and also gets stuff like bitrate, frequency and kbps. It uses Win32::API

[perl-win32-gui-users] CVS commit

2004-01-07 Thread Steve Pick
ng UnHook() inside a hook handler seems to be safe (after a lot of bugfixing and tweaks to make it safe), but if you find any problems (usually crashes) with this kind of thing let me know. Steve Pick [EMAIL PROTECTED]

[perl-win32-gui-users] Merry Christmas

2003-12-24 Thread Steve Pick
Just wanted to wish everyone on the list a Merry Christmas and offer my thanks for all your assistance and work on improving Win32::GUI. Cheers, Steve Pick [EMAIL PROTECTED]

[perl-win32-gui-users] Fixed in 670

2003-12-14 Thread Steve Pick
Hi, The list of fixes is available here: http://sourceforge.net/project/shownotes.php?group_id=16572&release_id=203389 Steve - Original Message - From: "Morbus Iff" <[EMAIL PROTECTED]> To: "Laurent ROCHER" <[EMAIL PROTECTED]>; "Win32GUI" Sent: Sunday, December 14, 2003 9:39 PM Subject

Re: [perl-win32-gui-users] Coloring again,

2003-12-02 Thread Steve Pick
Say what? What exactly is the problem? Reading the file or applying the colors? - Original Message - From: Chris To: perl-win32-gui-users@lists.sourceforge.net Sent: Tuesday, December 02, 2003 3:21 AM Subject: [perl-win32-gui-users] Coloring again, I'm trying to read in s

Re: [perl-win32-gui-users] Progress bar's

2003-12-01 Thread Steve Pick
Oh dear. I tried so much to get this to work, mucking about with classes and stuff and I couldn't figure out how. Best way I found is to paint your own damn rectangle using a Graphic object :) I realise that's not ideal, but it's the best solution I've got i'm afraid. I'd be interested as well if a

Re: [perl-win32-gui-users] Exchange Admin!

2003-11-28 Thread Steve Pick
That isn't really a Win32::GUI question. I've done stuff like this with an Active Directory server before, but can't remember how i did it. In the end i think i had to use Win32::API and Win32::OLE, since Net::LDAP just didn't work for me. Check out MSDN, i learned a lot from there, i can probably

Re: [perl-win32-gui-users] DC fullscreen

2003-11-26 Thread Steve Pick
You can get the DC of the screen like this (ripped from http://jeb.ca/perl/win32-gui-docs/index.pl/win32-gui-dc): $Screen = new Win32::GUI::DC("DISPLAY"); Then you can write what you like all over it. However this isn't great. You can also make a window with the style WS_CHILD, which has no title

Re: [perl-win32-gui-users] TextField entry

2003-11-26 Thread Steve Pick
Hi, I've just submitted an addition for Win32::GUI v0.0.665 which adds the keycode and extra info as arguments to the onKeyDown handler. This allows you to do this, to create a single-line text entry field which detects a press of the Enter key. my $textfield = new Win32::GUI::Textfield ($win, -

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Steve Pick
An additional note: why is there a problem with portability? I suggest you try the (horrible) ImageMagick library if you want something truely portable. I say ImageMagick is horrible because it crashes a *lot* if you use threads, and the perl interface is badly documented. But you may want to give

Re: [perl-win32-gui-users] Help with Win32::Gui::Graphic, WM_Paint and InvalidateRect

2003-11-23 Thread Steve Pick
The Graphic object has a Paint event in which all your painting should be done. If you find that the graphic is going blank on resize or something, then you should call the Paint() event there too. see http://jeb.ca/perl/win32-gui-docs/index.pl/win32-gui-graphic for a simple example. You should VA

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
eve me now? -- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Pick Sent: Friday, November 21, 2003 10:29 AM To: Chris; perl-win32-gui-users@lists.sourceforge.net Subject: Re: Re: [perl-win32-gui-users] Windows XP Color Bug That

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
rosoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp - Original Message - From: Steve Pick To: Chris ; perl-win32-gui-users@lists.sourceforge.net Sent: Friday, November 21, 2003 6:28 PM Subject: Re: Re: [perl-win32-gui-users] Windows XP Color Bug

Re: Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
That's a *dreadful* "solution". 1. It doesnt "fix" anything it just makes the background grey. 2. You used a billion labels made wide with spaces instead of using ONE with -width => $win->Width, -height => $win->Height 3. This would probably screw up capturing events, would make resizing excruti

Re: [perl-win32-gui-users] Windows XP Color Bug

2003-11-21 Thread Steve Pick
Hi, This happens with most MFC apps. I havent found a way to fix it. This is a crazy bug, most MFC apps will probably exhibit this on windows xp. Microsoft are crazy for not detecting MFC and auto-converting. The only fix is to disable Playskool Mode in windows xp, which you should have done a

[perl-win32-gui-users] additional fix for cursors

2003-11-20 Thread Steve Pick
In addition to Glenn Linderman's fix for resize cursors this should be put in (@)INTERNAL:Create(%OPTIONS) near the top: perlcs.hCursor = LoadCursor(NULL, IDC_ARROW); I've put it just below the line that reads perlcs.iEventModel = PERLWIN32GUI_EM_BYNAME; This will stop the cursor remaining as a

Re: [perl-win32-gui-users] Solution: flicker in Win32::GUI

2003-11-16 Thread Steve Pick
e: [perl-win32-gui-users] Solution: flicker in Win32::GUI > >From: "Steve Pick" <[EMAIL PROTECTED]> > >I've recently been looking into the flickering resize in win32::gui. The > >most compatible solution to this I've found is extremely (and very > >a

Re: [perl-win32-gui-users] Solution: flicker in Win32::GUI

2003-11-16 Thread Steve Pick
OTECTED]>; Sent: Sunday, November 16, 2003 5:16 PM Subject: Re: [perl-win32-gui-users] Solution: flicker in Win32::GUI > >From: "Steve Pick" <[EMAIL PROTECTED]> > >I've recently been looking into the flickering resize in win32::gui. The > >most compatibl

Re: [perl-win32-gui-users] Solution: flicker in Win32::GUI

2003-11-16 Thread Steve Pick
GUI source. If anyone wants to take on the flickering problem I'd be happy to help out with it. Steve - Original Message - From: "Steve Pick" <[EMAIL PROTECTED]> To: "Win32 GUI" Sent: Saturday, November 15, 2003 7:00 PM Subject: [perl-win32-gui-user

Re: [perl-win32-gui-users] Suggested addition to GUI.XS and some good news

2003-11-15 Thread Steve Pick
dow's parent but that doesnt work properly and MSDN says "no! dont do this!! use SetParent!") > On approximately 11/15/2003 5:14 PM, came the following characters from > the keyboard of Steve Pick: > > Hi, > > > > Can anyone currently maintaining or debuggin

[perl-win32-gui-users] Suggested addition to GUI.XS and some good news

2003-11-15 Thread Steve Pick
Hi, Can anyone currently maintaining or debugging Win32::GUI add this to GUI.xs? It's a small change that lets you do SetParent() from Perl. I've written a dockable-windows routine (panes in your main window can be detached into windows) that works with my (very cool) packing grid object, which w

[perl-win32-gui-users] Solution: flicker in Win32::GUI

2003-11-15 Thread Steve Pick
Hi, I've recently been looking into the flickering resize in win32::gui. The most compatible solution to this I've found is extremely (and very annoyingly) simple. Just add the style WS_CLIPCHILDREN to your window or dialog box. I tried to implement double-buffering in GUI.xs (I was working with

[perl-win32-gui-users] Fixed: Multiple ImageList bug

2003-10-26 Thread Steve Pick
ve. Steve - Original Message - From: "Steve Pick" <[EMAIL PROTECTED]> To: Sent: Sunday, October 26, 2003 8:32 PM Subject: Additional: Multiple ImageList bug > Additional: > > print $ARCHIVE."\n".$ICONS."\n"; > > gives: > Win32::GUI::ImageLis

[perl-win32-gui-users] Additional: Multiple ImageList bug

2003-10-26 Thread Steve Pick
Steve - Original Message - From: "Steve Pick" <[EMAIL PROTECTED]> To: Sent: Sunday, October 26, 2003 8:12 PM Subject: Multiple ImageList bug > Hi, > > I have some code that creates two ImageList objects: > our $ARCHIVE = new Win32::GUI::ImageList(64,64,IL

[perl-win32-gui-users] Multiple ImageList bug

2003-10-26 Thread Steve Pick
my bitmap objects need to be persistent or something? I would have thought perl's garbage collector would realise not to clear the anonymous bitmap objects created with ImageList::Add. Help! Steve Pick perl-win32-gui-users@lists.sourceforge.net