1
0
mirror of https://github.com/loginov-dmitry/multithread.git synced 2025-12-26 07:37:49 +02:00

ExNotUseThreads converted to Lazarus

This commit is contained in:
loginov-dmitry
2024-10-13 22:05:53 +03:00
parent 24eae91b2b
commit 256754754e
9 changed files with 225 additions and 10 deletions

View File

@@ -1,10 +1,15 @@
{$IFDEF FPC}{$CODEPAGE UTF8}{$H+}{$MODE DELPHI}{$ENDIF}
unit NotUseThreadsUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, SplashFormUnit;
{$IFnDEF FPC}
Windows, Messages,
{$ELSE}
LCLIntf, LCLType, LMessages,
{$ENDIF}
SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, SplashFormUnit;
type
TForm1 = class(TForm)
@@ -25,16 +30,20 @@ var
implementation
{$R *.dfm}
{$IFnDEF FPC}
{$R *.dfm}
{$ELSE}
{$R *.lfm}
{$ENDIF}
procedure TForm1.btnRun1Click(Sender: TObject);
begin
btnRun1.Caption := 'Æäèòå...';
btnRun1.Caption := 'Ждите...';
Screen.Cursor := crSQLWait;
try
Sleep(10000);
finally
btnRun1.Caption := 'Âûïîëíèòü';
btnRun1.Caption := 'Выполнить';
Screen.Cursor := crDefault;
end;
end;