The problem seems to be because it doesn't work with an object that was already shown. I tried to hide it at first, like you, and it worked well for showing, and it also worked for other directions. But if I add a button to hide it, it still suffers from the problem that I mentioned.
Here is the code for hiding button:
$mainWindow->AddButton( -name => 'b2', -text => 'label 1 hide', -pos => [150, 0], -onClick => sub { $mainWindow->label1->Animate( -show => 0, -time => 600, -direction => 'lr', -animation => 'roll', ); }, );
What should I do?
In reply to Re^2: Object isn't fully affected by the Animate method in Win32::GUI module
by Anonymous Monk
in thread Object isn't fully affected by the Animate method in Win32::GUI module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |