Hello,
I use the following function to show controls on my form:
class procedure TFormMain.FadeControls(ctrl:Array of TwinControl);
var element:TwinControl;
begin
for element in ctrl do
begin
PrepareForAnimation(element);
element.Visible := true;
AnimShowControl(element,250);
end;
end;
However,it slows down with 250 ms on each control so I'd like to put it in a thread.I read a few tutorials about theading in Delphi,but I don't understand how to create a thread with a parameter? In my case ctrl:Array of TWinControl.
I want to make a thread that does what the function above does,but I don't understand how to call it with a parameter.Threading in Delphi is harder.
Any help will be appreciated!