Try below info, taken from the "common methods" of Win32::GUI.
Hope this helps,
Jamal
GetTextExtentPoint32(STRING, [FONT])
Returns a two element array containing the x and y size of the
specified STRING in the window (with the specified FONT), or
undef on errors.
-Original Message-
From
Maybe the event handler code for the default button can check which
control has focus when Enter was pressed, and behave differently based
on the focused control.
Jamal
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Octavian Rasnita
Sent: Sunday, Octob
Rob may have a better solution, but in case it's helpful, this technique
worked for me. Set Escape as an accelerator key that terminates the
dialog, e.g., by defining an accelerator table as follows:
my $Keyboard = Win32::GUI::AcceleratorTable->new(Escape => sub {return
-1;});
Then, include
-ac
Hi Teddy,
I've experienced a similar problem, which was solved by code like the
following:
Win32::GUI::Dialog();
$Dlg->DESTROY();
In other words, call the Destroy method of the dialog object after the
GUI event loop terminates, thus ensuring that Perl completely releases
the dialog resources. Th
present (that is, a button with -cancel => 1), then probably
nothing should occur except perhaps general keyboard events like key
down, up, and char.
Jamal
--Original Message--
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jamal Mazrui
Sent: Friday, August 04, 2006 3:23 PM
Thanks for these improvements!
Tabbing out of a multi-line edit control now seems fine. The Escape key
still aborts the program with the Perl interpreter in memory. I did not
notice this problem being addressed in the documentation, but if it
could be as well, that would be helpful.
The batch f
I was able to define accelerators that solved the Tab and Escape key
problems. In case this helps others, I am pasting relevant code below.
Please forgive the lack of formatting: I happen to be blind and find
indentation more of a hindrance than a help with my talking computer
system.
Regards,
I just joined this list, but have searched the archive before posting.
I know that keystroke processing issues with a multiline textfield have
been discussed repeatedly. Evidently, the fix for the Enter key
creating a new line is straight forward: add the ES_WANTRETURN style
when creating the tex
8 matches
Mail list logo