Re: [perl-win32-gui-users] how to get the enter key to work with two textfields in win32-gui perl

2011-03-16 Thread Kevin Marshall
David, You should really only have one button created with the -ok option in a window. Even if you have many, the Enter key press would only be sent to the first button created with the option. Usually the option is used in conjunction with the -cancel option and is used to close the

Re: [perl-win32-gui-users] Custom window shapes

2010-10-10 Thread Kevin Marshall
Rob, You could try the Win32::GUI::Skin module on Sourceforge here http://sourceforge.net/projects/win32-gui-skin/. Kevin. Hi, I'd like to create/skin my windows with custom shapes and/or images (e.g. a PNG with transparency). I see that the SetWindowRgn() function is available in

Re: [perl-win32-gui-users] Vertical line spacing and a Win98/WinXP issue

2010-09-26 Thread Kevin Marshall
John, Win32::VisualStyles has XS code that calls the underlying Windows functions. You will either need to compile the module yourself, or you should be able to install the module using the Perl Package Manager. Kevin. Appreciate the response. In regard to Question 2, I tried to use your

Re: [perl-win32-gui-users] Vertical line spacing and a Win98/WinXP issue

2010-09-26 Thread Kevin Marshall
John, It is odd that PPM could not find the module. I tried it on my computer and managed to find it OK. Note that the package would be called Win32-VisualStyles (:: replaced with -). The repository that I use is http://ppm4.activestate.com/MSWin32-x86/5.12/1200/packages.xml, though it would

Re: [perl-win32-gui-users] how to automate the GUI which is created with SunAwtcanvas

2010-09-22 Thread Kevin Marshall
Shilpa, You could try using the Win32::GuiTest or Win32::GUIRobot modules. They can be found on CPAN. Kevin. Hi all, I m trying to automate an GUI which is created using Java if i see the window in Winspy it shows class as vncviewer.ViewportFrame for top window and no child windows

Re: [perl-win32-gui-users] New folder option on Browse for folder

2010-09-22 Thread Kevin Marshall
Rob, Unfortunately, the 'Create New' button is not available for the BrowseForFolder() function. Perhaps it is something that you could mention to the developers. Kevin. Hi Everyone, I am using Win32::GUI::BrowseForFolder . I cannot work out how to add the create new

Re: [perl-win32-gui-users] Win32::GUI Owner Drawn Controls

2010-08-29 Thread Kevin Marshall
Reini, The thing is that Custom Draw is supported by a different set of controls to Owner Draw, so I suppose a combination of both could be used. Kevin. 2010/8/28 Kevin Marshallkejoh...@hotmail.com: After much experimentation, I have finally succeeded in creating an owner-drawn control

Re: [perl-win32-gui-users] Win32::GUI Owner Drawn Controls

2010-08-29 Thread Kevin Marshall
Octavian, According to the Windows docs, the common controls are automatically accessible, which are what Win32::GUI uses, whereas custom controls require additional setup. Kevin. Hi Kevin, I was asking this because all the standard controls which can be created with Win32::GUI are

Re: [perl-win32-gui-users] Win32::GUI Owner Drawn Controls

2010-08-28 Thread Kevin Marshall
Hi Octavian, Thanks for your comments. It's good to know that you find it useful. I have been looking into Windows Accessibility to see how it works, and it seems that under normal circumstances (i.e. creating GUIs using C++, rather than Perl), the custom controls must provide an interface to

[perl-win32-gui-users] Win32::GUI Owner Drawn Controls

2010-08-27 Thread Kevin Marshall
Hi everyone, After much experimentation, I have finally succeeded in creating an owner-drawn control in Win32::GUI. I decided to create this post detailing how to create an owner-drawn control in case someone else has the need to use one. For those of you who don't know, an owner-drawn

Re: [perl-win32-gui-users] how to retrieve the value of syslistview32 item from the GUI

2010-08-22 Thread Kevin Marshall
Hi, Do you mean you are trying to read values from a listview control in a Window that you have created or a listview in a Window for another application. If you mean one you created, then this is how you do it: foreach my $index ($listvew-SelectedItems()){ my %info =

[perl-win32-gui-users] A Perl module for DirectX

2010-04-26 Thread Kevin Marshall
Hey, If anyone is interested, I have created a Perl module for DirectX. It is still in the early stages of development, but I have released it on SourceForge here, if anyone would be interested in having a play with it and providing some feedback. So far, I have created an interface to

Re: [perl-win32-gui-users] child window for opengl

2010-03-22 Thread Kevin Marshall
example to run from within win32gui , the example depends on kevin Marshall code posted here http://www.mail-archive.com/perl-win32-gui-users@lists.sourceforge.net/msg05673.html . the example show a popup child window in wich the opengl scene rendered. now i have tried the same example

Re: [perl-win32-gui-users] Borderless Main Window

2010-03-05 Thread Kevin Marshall
Ken, Instead of using -pushstyle, you need to use -popstyle. As for the constants needed, you will need to use WS_CAPTION to remove the title bar and WS_THICKFRAME to remove the window's sizing border. Here is an example: $splash = Win32::GUI::Window-new( -name = 'splash', -size =

Re: [perl-win32-gui-users] Executing a subroutine when selecting a radio button

2010-02-24 Thread Kevin Marshall
Bradley, It should be -onclick instead of -click. Also, instead of using the Change() method, use ReadOnly(1) to enable readonly and ReadOnly(0) to disable. Hope this helps, Kevin. Date: Wed, 24 Feb 2010 13:28:09 -0500 From: bradley.l...@bioreliance.com To:

Re: [perl-win32-gui-users] Windows shutdown

2009-12-23 Thread Kevin Marshall
Seb, If you have ActiveState Perl, you could try running the script using the wperl.exe program instead. This runs the script without displaying a console. This means that any output won't be seen, but I tried it with the sample code that Jeremy provided and it worked OK for me. If the

Re: [perl-win32-gui-users] How to edit ListView subitem ?

2009-11-20 Thread Kevin Marshall
Miller, After digging through the Windows SDK documentation, I'm fairly certain that Windows doesn't allow subitem labels to be edited. You can get around this, though, by handling the label change yourself. Here is a sample I put together from your code that allows subitems to be

Re: [perl-win32-gui-users] Win32 Gui Web site

2009-10-27 Thread Kevin Marshall
Hey everyone, I wouldn't mind contributing to the website with tutorials, code samples, documentation, etc. whenever I have some spare time. Kevin. Date: Wed, 21 Oct 2009 10:59:49 -0600 From: stevebo...@shaw.ca To: perl-win32-gui-users@lists.sourceforge.net Subject:

Re: [perl-win32-gui-users] How to capture keyboard key presses

2009-10-12 Thread Kevin Marshall
John, It is possible to capture keyboard input by using the -onKeyDown or -onKeyUp events. Here is an example: my $winMain = Win32::GUI::Window-new( -name = 'winMain', -text = 'Keyboard Capture', -size = [320,240], -onKeyDown = sub { my($self, $flags, $key) = @_; #do

Re: [perl-win32-gui-users] Comboboxes

2009-08-01 Thread Kevin Marshall
Hey, First, the reason your combobox isn't displaying properly is because of the height of the control. For a combobox, the height also sets the size of the dropdown list, with the textfield part of the combobox getting set to a standard height (about 20 or so pixels). Also note that

[perl-win32-gui-users] Win32::GUI Documentation

2009-07-12 Thread Kevin Marshall
Hey everyone, After digging through the Win32::GUI source and Win32 API Documentation, I have created some updated Win32::GUI documentation. Let's face it, the docs are lacking in some areas, so I decided to add to some of the information that is provided. If anyone would like a copy

Re: [perl-win32-gui-users] Win32::GUI Documentation

2009-07-12 Thread Kevin Marshall
Guys, I got a suggestion from Peter to set up a dedicated website for the Win32::GUI Documentation, which would include things such as more examples and tutorials, illustrations, etc. I wouldn't mind some feedback on what people think about this idea. Kevin. From:

Re: [perl-win32-gui-users] Win32::GUI Documentation

2009-07-12 Thread Kevin Marshall
On approximately 7/12/2009 5:41 PM, came the following characters from the keyboard of Kevin Marshall: Reini, I understand where you are coming from, a diff would make replacement of the original files easier. I was, however, considering a complete rewrite of the documentation

Re: [perl-win32-gui-users] How to catch keyboard event like LeftAlt+F5?

2009-06-02 Thread Kevin Marshall
Waldmar, One solution I have would be to install a hook for one or more of the various keyboard messages that are available. These messages give you access to flags that give extended information, which could be used to determine if the ALT key is down. My suggestion would be to use the

[perl-win32-gui-users] Win32::GUI + OpenGL

2009-05-21 Thread Kevin Marshall
to show a screen shot of my program). Also, how do I post a reply to an existing thread. Any help would be much appreciated. Sorry about any typos in advance. Contact me if you find any errors with this post (such as with the sample program). Thanks. Kevin Marshall (kejohm88 AT hotmail