[perl-win32-gui-users] Tabstrip

2001-05-21 Thread Jeremy Dack

Hi,

I am having a problem with tabstrips.

 When selecting the tabs by mouse the fields hide and show as expected but 
if I use the left and right arrow keys the tabs move but the fields don't 
change (i.e. it still shows page 1). Is this something I am doing wrong? I 
note that the example supplied does the same.


Any help at all would be appreciated.





[perl-win32-gui-users] Button MouseOver?

2001-05-21 Thread Peter Eisengrein
Is there a MouseOver function for Buttons? I didn't see anything in the
docs. What I'd like to do is display a help message in the StatusBar when
the cursor is over a button.



RE: [perl-win32-gui-users] Button MouseOver?

2001-05-21 Thread Piske, Harald
| Is there a MouseOver function for Buttons? I didn't see 
| anything in the docs.

When you create a Button-class you'll get the MouseMove event. Other than a
real MouseOver, this fires every time the mouse moves. It would take some
fantasy to come up with MouseEnter and MouseLeave. One way would be to do
$Main->Belly->ChangeCursor ($something); and then have a timer function look
up Win32::GUI::GetCursor() to see if the mouse has left. Not exactly
elegant.

Maybe you just don't care and have your status bar display the help line
until the user mouseovers another button - why not.

new Win32::GUI::Class
(
-name => '_Button',
-widget => 'Button',
-extends => 'Button',
);
$Main->AddButton
(
-name => 'Belly',
-text => 'Clickme',
-class => '_Button',
);
sub Belly_MouseMove
{
local ($button, $xpos, ypos) = @_;
#   print join (', ', @_), "\n";
}



[perl-win32-gui-users] newbie's question

2001-05-21 Thread Chen, Jerry G
Hi,

I'd like to write some GUI-based perl app on Win32 platform.

Which one is easier/simpler to use: Tk or Win32::GUI?  The latter
sounds pretty intriguing to me.  Can I find any sample Win32::GUI
apps on the Web?

Thanks,
Jerry



Re: [perl-win32-gui-users] Textfield on top of a Listview

2001-05-21 Thread Jonathan Southwick
I would recommend checking for a double-click event and then showing a new 
window with the textfield and the corresponding data from the listview and 
allowing the user to make the change that way.


Jonathan


At 5/16/2001 11:30 PM, you wrote:

I'm trying to do this:

A Listview with two columns (Property, Value). When the user clicks on an 
Item in the list, the Value column becomes editable.


I looked at the EditLabel thing, but that edited the first column only, 
and that didn't work properly anyway with the edit-box losing focus right away.


So, I was thinking of placing a Textfield on top of the Listview and 
Showing it when the user clicks on an Item. Two problems:


a) How do I get rid of the border around the Textfield?

b) It seems like as soon as i SetFocus to the Textfield, the Listview 
takes it back. So I do a lot of kludgy stuff to bring the focus back to 
the textfield. As a nice side-effect, this actually redraws the Listview 
so the border doesn't show :)  But all this seems fragile and is obviously 
not the right way.


Any ideas?


/J

PS. As I write this I realize that the first focus thing with the 
EditLabel seems related to the other focus thing I describe.

--
Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua
[EMAIL PROTECTED]


___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users


Jonathan Southwick
[EMAIL PROTECTED]
Technical & Network Services
Allegheny College, Meadville, PA 16335
(814) 332-2755




RE: [perl-win32-gui-users] newbie's question

2001-05-21 Thread Peter Eisengrein
I asked the same thing not long ago. The general concensus was that Tk might
be a better choice because it is cross-platform. Then I ran into a ton of
problems installing Tk, so I just went with Win32::GUI becuase I *could* get
that to install and I haven't looked back... A bunch of samples come with
the download of the module. Pull it down from Aldo's site, though, not
Activestate's -- they have done some wierd renumbering of his versions and,
from what I hear, makes updates a bit of a pain.

Enjoy and Good luck.

> -Original Message-
> From: Chen, Jerry G [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 21, 2001 12:22 PM
> To: 'perl-win32-gui-users@lists.sourceforge.net'
> Subject: [perl-win32-gui-users] newbie's question
> 
> 
> Hi,
> 
> I'd like to write some GUI-based perl app on Win32 platform.
> 
> Which one is easier/simpler to use: Tk or Win32::GUI?  The latter
> sounds pretty intriguing to me.  Can I find any sample Win32::GUI
> apps on the Web?
> 
> Thanks,
> Jerry
> 
> ___
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 



RE: [perl-win32-gui-users] newbie's question

2001-05-21 Thread Chen, Jerry G
Thanks for sharing your experience.

I went to remove the one I installed from ActiveState, and reinstall from
the inventor:

C:> ppm install --location=http://dada.perl.it/PPM Win32::GUI
Installing package 'Win32-GUI'...
Bytes transferred: 165087
Installing D:\local\Perl\site\lib\auto\Win32\GUI\GUI.bs
Installing D:\local\Perl\site\lib\auto\Win32\GUI\GUI.dll
Installing D:\local\Perl\site\lib\auto\Win32\GUI\GUI.exp
Installing D:\local\Perl\site\lib\auto\Win32\GUI\GUI.lib
Installing D:\local\Perl\site\lib\Win32\GUI.pm
Installing D:\local\Perl\site\lib\Win32\GUI\BitmapInline.pm
Installing D:\local\Perl\site\lib\Win32\GUI\GridLayout.pm
Writing D:\local\Perl\site\lib\auto\Win32\GUI\.packlist

Looks like no samples/docs came with the install.
I went ahead to get this http://dada.perl.it/Win32-GUI-0.0.558.tar.gz
and found some samples/docs inside.  I'll start from there.



-Original Message-
From: Peter Eisengrein [mailto:[EMAIL PROTECTED]
Sent: Monday, May 21, 2001 12:32 PM
To: 'perl-win32-gui-users@lists.sourceforge.net'
Subject: RE: [perl-win32-gui-users] newbie's question


I asked the same thing not long ago. The general concensus was that Tk might
be a better choice because it is cross-platform. Then I ran into a ton of
problems installing Tk, so I just went with Win32::GUI becuase I *could* get
that to install and I haven't looked back... A bunch of samples come with
the download of the module. Pull it down from Aldo's site, though, not
Activestate's -- they have done some wierd renumbering of his versions and,
from what I hear, makes updates a bit of a pain.

Enjoy and Good luck.

> -Original Message-
> From: Chen, Jerry G [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 21, 2001 12:22 PM
> To: 'perl-win32-gui-users@lists.sourceforge.net'
> Subject: [perl-win32-gui-users] newbie's question
> 
> 
> Hi,
> 
> I'd like to write some GUI-based perl app on Win32 platform.
> 
> Which one is easier/simpler to use: Tk or Win32::GUI?  The latter
> sounds pretty intriguing to me.  Can I find any sample Win32::GUI
> apps on the Web?
> 
> Thanks,
> Jerry
> 



[perl-win32-gui-users] Shutdown, reboot, logoff and lock on NT and 2000 with perl?

2001-05-21 Thread Thomas, Timothy B
Are there any Win32::GUI options to to shutdown, reboot, logoff the current
user and/or lock the screen using perl on NT or 2000?

Thanks,
Tim Thomas