[perl-win32-gui-users] Create font object from file?

2007-07-06 Thread Perl Rob
Hi, Is it possible to create a Win32::GUI::Font object directly from a font file (e.g. "arial.ttf")? If not, does anyone have a good copy of Gdi32.lib? It has a function called AddFontResource() (which I could load with Win32::API) that's exactly what I'm looking for, but my Gdi32.lib file thro

Re: [perl-win32-gui-users] How to terminate a window in Win32:GUI

2007-07-06 Thread Geoffrey Spear
For that you want Win32::GUI::MessageBox(). You can find all of the available options at http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=reference-methods On 7/6/07, Maxmelbin Neson (RBIN/EMT1) <[EMAIL PROTECTED]> wrote: Hello Geoffrey , Thanks a lot for the help .. Today is my fi

Re: [perl-win32-gui-users] How to terminate a window in Win32:GUI

2007-07-06 Thread Maxmelbin Neson (RBIN/EMT1)
Hello Geoffrey , Thanks a lot for the help .. Today is my first day with Win32::Gui .. So a lot of questions .. Now I want to display an error message in a message box. Is a message box already present in WIN32::GUI or should I create another window to display the error with OK and Cancel promp

Re: [perl-win32-gui-users] How to terminate a window in Win32:GUI

2007-07-06 Thread Geoffrey Spear
Maxmelbin, You simply need to return -1, the same as in your Main_Terminate function. On 7/6/07, Maxmelbin Neson (RBIN/EMT1) <[EMAIL PROTECTED]> wrote: Hello , I have a button CANCEL which should close the window .. How to do it ? What is the method My code .. use Win32::GUI; use Win32:

[perl-win32-gui-users] How to terminate a window in Win32:GUI

2007-07-06 Thread Maxmelbin Neson (RBIN/EMT1)
Hello , I have a button CANCEL which should close the window .. How to do it ? What is the method My code .. use Win32::GUI; use Win32::GUI::GridLayout; $main = Win32::GUI::DialogBox->new(-name => 'Main', -text => 'Perl Win32 GUI',

Re: [perl-win32-gui-users] How do I replace the text in atextfield in Win32::GUI /textfield

2007-07-06 Thread Geoffrey Spear
You use the exact same method: my $value = $chkb->Text(); On 7/6/07, Maxmelbin Neson (RBIN/EMT1) <[EMAIL PROTECTED]> wrote: Thanks .. That helped One more question .. How do I retrieve the value form a text field to a variable ? -Original Message- From: [EMAIL PROTECTED] [mailto:[

Re: [perl-win32-gui-users] How do I replace the text in atextfield in Win32::GUI /textfield

2007-07-06 Thread Maxmelbin Neson (RBIN/EMT1)
Thanks .. That helped One more question .. How do I retrieve the value form a text field to a variable ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 6. July 2007 12:19 PM To: Maxmelbin Neson (RBIN/EMT1) Subject: Re: [perl-win32-gui-users] How d