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
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
...
}
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:
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
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
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
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
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
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]
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
> 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
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 -
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'
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
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
"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
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
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
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
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.
#
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
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.
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
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
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]
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]
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
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
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
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
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
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,
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
48 matches
Mail list logo