Hi,
I want to be able to get the label of the object that fired an event, like a
button, a menu...
I have tried this code in the subroutine that handles the event:
my $label = $self->FindWindow($event->GetId())->GetLabel;
I've seen that $event->GetId() works, but it gives an error telling that
Can't call method "GetLabel" on an undefined value, so I guess that
$self->FindWindow() doesn't work for menus.
Is there a way of finding which of the controls fired the event, or if it is
not, how can I first find what type of control fired it, then how can I get
the lable of a menu?
Thanks.
Octavian