> -----Original Message-----
> From: Dennis Putnam [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 8:05 AM
> To: [email protected]
> Subject: [perl-win32-gui-users] Novice question about
> accessing AddLabel
> properties
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I need to change the text property of an AddLabel object and
> cannot find
> any documentation on how to do this. For example:
>
> $window->AddLabel(
> - -name=>"mylabel",
> .
> .
> .
> - --text=>"Original text"
> );
>
> Later in the script I need to change that label, although not
> the right
> syntax, logically I want:
>
> $window->(mylabel_text)("New text");
Almost right. It should be
$window->mylabel->Text("New text");
where the middle part(mylabel in this case) is the "-name" of the control.
Basically, since $window->mylabel is an object, you have have to call a method
on it (the ->Text("something") part....