From: Peter Eisengrein <Peter.Eisengrein@at...> - 2001-04-17 21:57:40
Having trouble with a Win32::GUI::Button where it is not seeing the _Click.
However if I do $ReportButton->Show() or Hide() it works ok (because of the
$var reference) and visually you can see the button is clicked (it
depresses). I am guessing the problem is because it is nested on a Tab, but
I'm not sure. And if that is it, whatis the proper way to call it? In the
script below, if you click on this button you do NOT get any output to the
Any ideas? Is there any debug I can use to print all events to the console
without having to explicitly code for each of them? If there were I'd be
able to see what my system is getting versus what I think it is (should be)
my $ReportButton = $W->Tab->AddButton(
-name => "ReportButton",
-left => 725,
-top => 75,
-width => 85,
-text => "Create Report",
-tabstop => 1,
print "ReportButton was clicked!\n"; ### get nothing!
From: Johan Lindstrom <jpl@bo...> - 2001-04-18 13:24:07
>depresses). I am guessing the problem is because it is nested on a Tab, but
>I'm not sure. And if that is it, whatis the proper way to call it? In the
>script below, if you click on this button you do NOT get any output to the
I had the same problem. My workaround was to simply not insert the control
i the TabStrip but in the Window itself. The only difference, so far as I
could tell, is that the left/top is relative to the Window instead of the
TabStrip interior. Either way you'll have to keep track of which controls
belong to which tab yourself.
Stuff for making that easier: If you look through the archives you'll find
a posting from Laurent Rocher with a module for managing TabStrips. I think
that involves using your current approach, so maybe the missing-event
problem is solved by using it, I don't know. Or you can download the Oasis
source and use the Win32::GUI::TabStripGroup class.
Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua
Get latest updates about Open Source Projects, Conferences and News.