RE: [perl-win32-gui-users] GUI & OLE (WAS: Drag-n-Drop?)

2001-11-04 Thread Peter Köller
> I have had no problems with combining the use of Win32::GUI & > Win32::OLE in > the same application. Currently I have a Win32::GUI program that > sits in the > systray and communicates (read / write) to Outlook calendar & tasks via > Win32::OLE. > Is there any code that shows the problems I

Re: [perl-win32-gui-users] Capture shutdown

2001-11-04 Thread Glenn Linderman
I'd sure like to see this capability (even if not this exact code) in a future release... Win32 GUI seems to deal better with shutdown on WinNT/2K than 9x. Sean Healy wrote: > I have not been successful. PeekMessage doesn't seem to work at all, and > all I could get GetMessage to catch were men

RE: [perl-win32-gui-users] GUI & OLE (WAS: Drag-n-Drop?)

2001-11-04 Thread Jason Bingham
I have had no problems with combining the use of Win32::GUI & Win32::OLE in the same application. Currently I have a Win32::GUI program that sits in the systray and communicates (read / write) to Outlook calendar & tasks via Win32::OLE. Is there any code that shows the problems Here is a quic

Re: [perl-win32-gui-users] ACK!! Sputter Cough... sayitisn't so!

2001-11-04 Thread Mark Wilkinson
> Example of creating a Click event handler that passes a certain object > ($objControl) for each control to a single sub: > #Create the event handler > my $perlEvent = qq{ > { > my \$obj = \$objControl;#Nice little closure > sub ::${name}_Click {

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Joseph_Vieira
I ran into this problem with global variables about two weeks ago when I was trying to write a nice little program to run sql queries to any database connection (as opposed to using sqlplus for oracle isql_w for ms-sql etc...). It does seem contradictory to basic programming to use global variabl

RE: [perl-win32-gui-users] Capture shutdown

2001-11-04 Thread Sean Healy
I have not been successful. PeekMessage doesn't seem to work at all, and all I could get GetMessage to catch were menu clicks (my application has a NotifyIcon, but I never call Show on the main window). To solve my original problem, I simply have my application write to file each time a setting

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say itisn't so!

2001-11-04 Thread Johan Lindstrom
At 10:55 2001-11-04 -0600, Mark Wilkinson wrote: > > I say this because there appears to be **nothing** passed > This isn't so. well... an examination of @_ at the beginning of the event handling subroutines says it is so... nothing is *passed* Ah. I was referring to your comment about using

RE: [perl-win32-gui-users] ACK!! Sputter Cough... say itisn't s o!

2001-11-04 Thread Piske, Harald
Agreed... it isn't "all that bad", but it is limiting/frustrating nonetheless... especially given how simple it would be to add this functionality (i.e. the widget ref must be available inside of the widget code itself, deep in the guts of Win32GUI, and thus be available to the code making the cal

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say itisn't so!

2001-11-04 Thread Mark Wilkinson
Johan Lindstrom wrote: > > I say this because there appears to be **nothing** passed > This isn't so. well... an examination of @_ at the beginning of the event handling subroutines says it is so... nothing is *passed* > No, but it's very impractical. I felt the same thing when I started using >

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Morbus Iff
>in fact, it explicitly declares them as globals in the use vars statement... >I am trying to *avoid* declaring all of my variables as globals... Ah. Ok. I was showing AmphetaDesk as "yes, it can be done with strict", and also gave the warning you just re-stated: At 8:39 PM -0500 11/3/01, Morbu

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Morbus Iff
>this will fail because there is no way (AFAIK) to pass $x into the >subroutine >the result of a click... I had a look at the AmphetaDesk code >that Morbus >suggested (I haven't looked at auctioneer yet...), but that doesn't seem >to use >strict in all of its modules, so that doesn't count. Not s

RE: [perl-win32-gui-users] Drag-n-Drop?

2001-11-04 Thread Peter Köller
> But a Win32::GUI 0.0.559 with DnD-support would be nice. Aldo? First, I would appreciate a Win32::GUI which works with Win32::OLE ;-) Aldo? Peter > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Johan Lindstrom > Sent: Sunday, November 04, 2001 4:

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Johan Lindstrom
At 18:31 2001-11-03 -0600, Mark Wilkinson wrote: Someone please... save me before I choke! Please say it isn't so!! Tonight I really started to build a serious heavy-duty Win32::GUI application, and I immediately hit a wall: Is it really not possible to (usefully) program in Win32::GUI while un

Re: [perl-win32-gui-users] Drag-n-Drop?

2001-11-04 Thread Johan Lindstrom
Margus wrote: On the other hand, is anyone able to compile a PPM of Win32::GUI with drag and drop functionality? Hmmm... wouldn't want to spread a rouge distribution of Win32::GUI, this is confusing enough as it is. But a Win32::GUI 0.0.559 with DnD-support would be nice. Aldo? /J --

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Marcus
On 04.11.01 at 06:28 Mark Wilkinson wrote: >The real question is this: how do you get your variables into your widget >event >control subroutines? e.g. the code below: > >use strict; >my $x = 1; > >sub Button_Click { >++$x >} Well, I think you need to declare subs as: sub main::Button_Click

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Mark Wilkinson
> I had a look at the AmphetaDesk code that Morbus > suggested but that doesn't seem to use > strict in all of its modules, so that doesn't count. in fact, it explicitly declares them as globals in the use vars statement... I am trying to *avoid* declaring all of my variables as globals... M

Re: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Mark Wilkinson
Hey Peter! Wie geht's? :-) Hey Morbus! > I had no problems with "use strict" (you can have a look at my source code > http://sourceforge.net/projects/auctioneer/) The real question is this: how do you get your variables into your widget event control subroutines? e.g. the code below: use stric

RE: [perl-win32-gui-users] Capture shutdown

2001-11-04 Thread Marcus
On 04.11.01 at 12:52 Rogers, John wrote: >>Is there a message that Windows sends out? In that case, I could >use > >PeekMessage. >Try windows mesages, >WM_QUERYENDSESSION >and WM_ENDSESSION I found that information too once, but I don't know how to implement it. How do you use PeekMessage?

Re: [perl-win32-gui-users] Drag-n-Drop?

2001-11-04 Thread Marcus
On 03.11.01 at 06:11 Sean Healy wrote: >Johan Lindstrom has added this functionality - but it requires recompiling >GUI.xs.* Johan's stuff is here (he'll probably post it as well, but just >in >case): >http://www.bahnhof.se/~johanl/perl/Win32GUI/DragDrop.pm Since we've discovered that you can m

RE: [perl-win32-gui-users] ACK!! Sputter Cough... say it isn't so!

2001-11-04 Thread Peter Köller
> Tonight I really started to build a serious heavy-duty Win32::GUI > application, and I immediately hit a wall: I had no problems with "use strict" (you can have a look at my source code http://sourceforge.net/projects/auctioneer/) But I hit a wall with Win32::GUI in connection with Win32::OLE!