panel growing

vb1992

Well-Known Member
Licensed User
Longtime User
I know there is an animation library, but if I wanted to
resize and redraw a panel myself, adjusting the width and
height

for i = 1 to 10
panel.width = panel.width + 5
panel.height = panel.height + 3
panel.invalidate
next it

can this be done?
 

Cableguy

Expert
Licensed User
Longtime User
Yes, use a Timer and adjust the values within the Tick event...
Remember that Timers are special "views" and should be declared in Process_Globals, And stopped in Activity_pause

In the case of Timers usage, you would check the Panel's actual width or height to meet a predefined value, and if not reached then increment the value...
 
Upvote 0
Top