[perl-win32-gui-users] Best way to re-draw a window full of buttons?

2008-03-21 Thread Doug Hoffman
I have a bunch of buttons on a window that use -picture .bmp images to show if the button is on or off. The data for the buttons on and off state comes from a file that changes all the time. What's the proper way to refresh the window and hence re-draw all of the button objects on the window?

Re: [perl-win32-gui-users] Button onClick event

2008-03-21 Thread Doug Hoffman
eciate the help. - Original Message - From: Glenn W Munroe To: 'Doug Hoffman' ; perl-win32-gui-users@lists.sourceforge.net Sent: March 21, 2008 1:41 PM Subject: RE: [perl-win32-gui-users] Button onClick event Doug, That will work, but it breaks one of th

Re: [perl-win32-gui-users] Button onClick event

2008-03-21 Thread Doug Hoffman
Thanks to all who replied. Here is the code that I received. my ($ButtonClicked, @other_params) = @_; my $ButtonName = $ButtonClicked->{-name}; Thanks to Sean for the email He was nice enough to explain the mechanics of the code above and how it fetches the button -name Here's the button add a

[perl-win32-gui-users] Button onClick event, how to get button -name

2008-03-21 Thread Doug Hoffman
I have been trying to understand how to get the -name of a button that was clicked by the -onClick event, at the subroutine. I have read the win32::Gui docs over and over, read several post here and elsewhere, but I still don't get it yet. :) Please bear with me, I am trying to learn, but you kn