As an alternative way, you can fool windows by sending a notification that the form style has been changed, which will reset the window to a "secret flag" for the current form handle. Thus, when showing the already created form, the animation of the show's spectacular effect will be applied again. However, I canβt say what negative consequences can be caused in this way.
uses Winapi.Windows, Vcl.Controls; type TFormHelper = class helper for TForm public procedure Show; end; implementation procedure TFormHelper.Show; begin SendMessage(Handle,CM_CUSTOMSTYLECHANGED,0,0); inherited Show; end;
Note : code provided using the class helper, this function / keyword may not be available in older IDEs.
source share