in reply to Win32::GUI::Dialog label

Eh, wait a minute...

Is this what you do?

$lable = $main->AddLabel( ... ) Win32::GUI::Dialog(); $label->Change(-text => "something else");

If it is, that's the problem. The Change() call isn't executed until Perl returns from Dialog(), and that doesn't happen until you terminate the main event loop.

You have to call $label->Text() from within an event handler, like so:

sub SomeButton_Click { $label->Text("Blah"); return(1); }

If that's already the case, my apologies.


/J

Replies are listed 'Best First'.
Re: Re: Win32::GUI::Dialog label
by primus (Scribe) on Jan 27, 2003 at 01:30 UTC
    heh, well believe it or not, i was doing that a while ago and it wasnt working, or at least i thought it wasnt working, so i changed it and took it out of the *_Click function, though later i found that my problem was that i didnt reset the array with the my hashes... darn mundane details :)
    thanks alot for the help.