I have a panel (bottom aligned) and some controls (client aligned).
To animate the panel I use:
AnimateWindow(Panel.Handle, 1000, aw_hide or AW_SLIDE OR AW_VER_POSITIVE);
panel.Visible:=false;
In my case the panel smoothly hides and only then other controls take it’s space.
But I want that other controls move smoothly and simultaneously with the panel down.
For example, FireFox uses this effect.
Can anybody suggest me something useful? Thanks!
AnimateWindowis a synchronous function, it will not return until the animation finishes. That means during the time specified indwTimeparameter, no alignment code will run and your ‘alClient’ aligned controls will stay still until the animation finishes.I’d suggest to use a timer instead. Just an example: