I think it should work now in my version with the accelerator key fixes.
I'd be glad to send you that version for testing if you would like it; I
hope to get a patch to Laurent for the accelerator key fixes before the
weekend is over, and before my hard disk completely dies :( :( :(
On approximately 11/28/2003 6:13 AM, came the following characters from
the keyboard of Glenn W Munroe:
Glenn, I know that accelerator tables are broken and that you've put a
lot of work into figuring out why. I could never get them to work at all;
will this work now or just when the long-awaited fix is released? If it
will work now, would you please post a snippet of code so I can see what
I'm doing wrong?
Thanks,
Glenn Munroe
Hi, the overall effect can also be achieved via accelerator keys...=20
define Enter as an accelerator key.
On approximately 11/26/2003 4:07 PM, came the following characters from
the keyboard of Steve Pick:
Hi,
=20
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 allo=
ws
you to do this, to create a single-line text entry field which detects =
a
press of the Enter key.
=20
my $textfield =3D new Win32::GUI::Textfield ($win,
-name =3D> "textfield1",
-left =3D> 0,
-top =3D> 0,
-width =3D> 100,
-height =3D> 20
-multiline =3D> 1,
-autohscroll =3D> 1,
-autovscroll =3D> 0,
-onKeyDown =3D> \&keydown,
);
=20
sub keydown {
my ($additional_data,$keycode) =3D @_;
if($keycode =3D=3D 13) {
print "Enter has been pressed.\n";
}
}
=20
Hopefully this will be included in the next CVS update, and will allow =
you
to get Enter presses without using that nasty "default button" method.
=20
Steve
--
Glenn -- http://nevcal.com/
===========================
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick. It's ridiculous.
-- Bill Gates
And here is why it is ridiculous:
The division that includes Windows posted an operating profit of $2.26
billion on revenue of $2.81 billion.
--from Reuters via
http://biz.yahoo.com/rc/031113/tech_microsoft_msn_1.html
So that's profit of over 400% of investment... with a bit more
investment in Windows technology, particularly in the area of
reliability, the profit percentage might go down, but so might the bugs
and security problems? Seems like it would be a reasonable tradeoff.
WalMart earnings are 3.4% of investment.