Im making an app using delphi and here is my code snippit
pnlMenu1.Visible := True;
Sleep(5000);
pnlMenu1.Visible := False;
pnlMenu2.Visible := True;
I need the user to still be able to do stuff while the Sleep() is running, but Sleep() stops the main thread which stops the program. Is there anything that i can replace the Sleep() with that will work? Like:
pnlMenu1.Visible := True;
//Wait 5 seconds but dont holt main thread
pnlMenu1.Visible := False;
pnlMenu2.Visible := True;