Re: [perl-win32-gui-users] Get width/height of text + font

2006-12-27 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] default button on a form

2006-10-16 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI dialog doesn'tclose

2006-10-04 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] Win32::GUI dialog doesn't close

2006-10-04 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] Beta release of 1.04 available fortesting

2006-08-04 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] Beta release of 1.04 available fortesting

2006-08-04 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] Tab and Escape with Multiline textfield

2006-07-18 Thread Jamal Mazrui
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,

[perl-win32-gui-users] Tab and Escape with Multiline textfield

2006-07-17 Thread Jamal Mazrui
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