David Hiltz wrote:
> How can I distinguish between buttons, checkboxes and radiobuttons on the
> screen if I asking for their classname?
>
> I tried this:
>
> [...]
>
> But it tells me they are all buttons (probably because checkboxes and
> radiobuttons are derived from a button class).
you got it. checkboxes and radiobuttons are in fact of the BUTTON class,
they only differ for some style bits.
> Any way to find out exactly what they are?
you can refer to the perl class (aka package) they belong:
foreach $child (keys %{$Win}) {
next if $child =~ /^-/;
print "$child: ", ref $Win->{$child}, "\n";
}
__END__
# Aldo Calpini
print sort {$_{$a} cmp $_{$b}} values %{{split undef,
"xritajbugne fahokem csuctawer jhdtlrnpqloevkshpr"}};