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
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
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
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
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
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
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
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
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
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
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 =
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
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
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 =
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:
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
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
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:
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
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
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
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:
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
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
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
25 matches
Mail list logo