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

2009-05-21 Thread Kevin Marshall
worked for basic implementations but don't expect to be able to make anything to big, such as games, but you never know. I'd love to hear any questions or comments about this example, as well as any examples of anything anyone else has done. As a side note, I'm new to posting

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

2009-06-01 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 WM_SY

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

2009-07-11 Thread Kevin Marshall
Peter, Nice to know that these examples have been useful to people. I'll admit that I am no OpenGL or Win32 API expert, so there may be different (or better) solutions to these problems. If anyone has any different solutions, I would be glad to here them. In response to your first quest

[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 of

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: kejoh...@hotma

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

2009-07-12 Thread Kevin Marshall
o: kejoh...@hotmail.com; perl-win32-gui-users@lists.sourceforge.net > Subject: Re: Win32::GUI Documentation > > Kevin Marshall schrieb: > > Reini, > > > > Here is my updated version of the Win32::GUI Documentation. If you have > > any questions or comments, ple

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

2009-07-12 Thread Kevin Marshall
2::GUI Documentation > > 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

Re: [perl-win32-gui-users] Interpreting an lParam pointer

2009-07-18 Thread Kevin Marshall
Hey everyone, Here is an alternative method for extracting a structure out of a wParam or lParam parameter. I pieced this together from various posts on the mailing list. This method is message specific and requires knowledge of the size and members of the specific structure. This example u

Re: [perl-win32-gui-users] blessed object dereferencing unusual behaviour...

2009-07-30 Thread Kevin Marshall
Hey, Instead of trying to use symbolic references to the objects, one solution would be to store the objects in an array and simply iterate over the array to access the objects. You could also use a hash if you want to access them by name. I've used this method when using TabStrip controls.

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 unless

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 p

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: [perl-win32-gui-us

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 edit

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] 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: perl-win32-gui-users@li

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] 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 but the

Re: [perl-win32-gui-users] Getting the node that's being Expanded in a TreeView

2010-04-13 Thread Kevin Marshall
Joe, A method I have used for this situation is to store the nodes of the treeview in a hash when populating the treeview, like this: my %Nodes; my $treeview = Win32::GUI::TreeView->new( -name => 'TreeView', #... ); foreach(1..9){ my $node = $treeview->InsertItem(-text => $_);

[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 Direct

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

2010-05-03 Thread Kevin Marshall
Ramakanta, I'm not sure what you are trying to do here: sub Loop_Click { print "Loop clicked \n"; $win ->( -activate => (1));#<== my $thr2 = threads->create( \&thread2); $res =$thr2->join(); print "hello $res\n"; }; __END__ I think you meant: sub Loop_Click {

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

2010-05-03 Thread Kevin Marshall
Ramakanta, The problem is that system will block until the script completes, which means the join() on the thread will also block. If you can do without the return value, you can detach() the thread instead of join()ing it. I'm not too sure as to how you can call DoEvents() while waiting for s

Re: [perl-win32-gui-users] Is it possible to work on toolbar controls with win32::GUI

2010-05-09 Thread Kevin Marshall
Selva, You can use the ButtonCount() method to retrieve the number of buttons in the toolbar and the GetButtonText() method to retrieve the text of the specified button. Here is some sample code: #!perl use strict; use warnings; use Data::Dump qw(dump); use Win32::GUI qw(); use Win32::GUI::Co

Re: [perl-win32-gui-users] Problem with graphic application

2010-05-11 Thread Kevin Marshall
Waldemar, One reason for your controls disappearing might be that they don't have unique names. If you create a control with the same name as an existing control, the previous control is destroyed. A possible solution could be to keep a counter of the number of controls created which could be

Re: [perl-win32-gui-users] Problem with graphic application

2010-05-11 Thread Kevin Marshall
Waldemar, Do you mean when you application exits, because Win32::GUI generally takes care of the destruction of any windows on exit. Sometimes, however, you may receive an error along the lines of "Can't call method STORE on an undefined value...". In which case, you can just undef() your wind

Re: [perl-win32-gui-users] Is it possible to work on toolbar controls with win32::GUI

2010-05-18 Thread Kevin Marshall
looking some solution on the same . Any further thoughts from you is very much helpful. Thx in advance and I hope that I have clarified my requirement. Selva D --- On *Mon, 10/5/10, Kevin Marshall //* wrote: From: Kevin Marshall Subject: RE: [perl-win32-gui-users] Is it possible to

Re: [perl-win32-gui-users] Is it possible to work on toolbar controls with win32::GUI

2010-05-19 Thread Kevin Marshall
plication and in that application, in the toolbar (you could see save image etc - attachment- red colored is the toolbar INeed to work), I have to get/do the Toolbar count , Button click based on indiex or test Click on IMage Size of Each Button Individual Button State. My perl script will not crea

Re: [perl-win32-gui-users] How to Access Values in ListView Control Embedded inside System Tab Control

2010-06-10 Thread Kevin Marshall
Prasad, Did you create this ListView control yourself in a Perl Win32::GUI script? If so, you can use the object returned when creating the control to access methods for that control, like so: my $listview = Win32::GUI::ListView->new(...); # or my $listview = $parent->AddListView(...); Here

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 = $listview->GetItem(

[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 control

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

2010-08-28 Thread Kevin Marshall
ow to add accessibility features > (MSAA) to this custom control in order to be as useful as a standard control? > > Basicly it should also report the labels of the list box items and not just > print them. > > Thank you. > > Octavian > > - Original Message - &g

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 Marshall: > >> After much experimentation, I have finally succeeded in creating an >> owner-drawn con

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

2010-08-29 Thread Kevin Marshall
n32::GUI are accessible without doing anything special. > > Octavian > > - Original Message - > From: "Kevin Marshall" > To: "Octavian Rasnita" > Cc: > Sent: Saturday, August 28, 2010 1:56 PM > Subject: Re: [perl-win32-gui-users] Win32::GUI Owne

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

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

2010-09-25 Thread Kevin Marshall
John, Question 1: After looking through the Windows SDK docs, as far as I can tell, labels don't allow you to set the line spacing of the text. The best I can think of is to either choose a font with a large line spacing, or you could create an owner drawn control and draw the text yourself.

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

2010-09-26 Thread Kevin Marshall
Perl v5.8.8 built for MSWin32-x86-multi-thread > Binary build 817 [257965] by ActiveState Mar 20 2006 17:54:25 > WIN32::GUI version 1.06 > > Am I missing something? > > John > > >> ---Original Message--- >> From: Kevin Marshall >>

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

2010-09-26 Thread Kevin Marshall
, or search style. I was listed lots of packages with win32 visual or style in their name, but I could not find Win32-VisualStyles. Again I apologize for missing something. Is it under another name, or just not there? John Whitney ---Original Message--- From: Kevin Marshall

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 . 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 Win32:

Re: [perl-win32-gui-users] How to change the font in a Win32::GUI::MessageBox

2011-02-21 Thread Kevin Marshall
Waldemar, As far as I know, no you cannot change the look or layout of the dialog boxes created by the MessageBox() function, apart from the icon displayed. The best option would be to create your own message boxes. Kevin. > Hello! > > is anyone know is it possible? I want to display more forma

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 DialogBox