Erick J. Bourgeois wrote:
> Is there a way of dynamically checking a labels visibility?
> Well, dynamically would be the same as statically, so really
> how can you test a label to check whether it is showing.
> Something sort of like this:
>
>if ( $MainWin->Label_1->Visible ) {
>     ...
> } else { ... }
>
> However, this code doesn't work because there is no method
> "Visible" for a label. But, you can set the -visible option
> of a label to 0. How do you find out whether it's 0 or 1?

the method is called "IsVisible".

    if ( $MainWin->Label_1->IsVisible ) {
        ...
    } else { ... }


cheers,
Aldo

__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;



Reply via email to