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
console.

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)
sending. 

Thanks,
Pete


my $ReportButton = $W->Tab->AddButton(
        -name    => "ReportButton",
        -left    => 725,
        -top     => 75,
        -width   => 85,
        -text    => "Create Report",
        -tabstop => 1,
);

sub ReportButton_Click
{
        print "ReportButton was clicked!\n";    ### get nothing!
        return 0;
}

Reply via email to