Example Delphi
Delphi Examples Collection
Today, Delphi is one of the popular desktop programming tool. There are thousand even million programmer in this world using delphi as their favorit tool. This site try to collect the examples, tips and tricks of Delphi programming. We collect, test them and redistribute the collection of delphi programming for you.
Make Application Delay
Author: admin | Category: System
//When we want to make our application to be delayed for a time //we can use SLEEP procedure unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); var acursor: TCursor; begin acursor:=screen.Cursor; ShowMessage('Application will be delayed for 5 seconds!'); Screen.Cursor := crHourGlass; Sleep(5000); Screen.Cursor:=acursor; end; end.
Tags: Timer