This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
See how the menu item labels "pop in" after the animation completes? Is there any way to prevent that?
Notice how the slide up just rolls up the labels, i.e. you can still see the labels while the animation is executing.
How do I do that with the down animation?
Animations execute in their own world, so the VL runtime can only set its state after the animation completes. So, if you have any layout managers, they will be evaluated once the animation has executed.
This means that to get the effect you want, you'll need to have all the menu items in the right place before you animate the height of the container.
Took some work trying to figure this out. Building off Stewart's comment that everything needs to be in the right place before you start makes sense, but I was still getting the pop in. I would set the appropriate Layout then trigger the animation, however the pop in still occurs.
When an animation starts, the animating controls are not bound by the rules of Layout Managers.
This had me stumped for a while because "everything" is in a LayoutManager. Drop a control on the form and you have a Layout Manager.
After some experimentation, it seems the above applies when you have multiple LayoutManagers that you are swaping out. i.e. #MenuPanel.LayoutManager <= #HorizontalMenuLayout and #MenuPanel.LayoutManager <= #VerticalMenuLayout
If you only use one LayoutManager, you have to adjust the individual layout items instead of swapping Layouts.