Changeset 150 for MicroThreading/Demo/UMainForm.pas
- Timestamp:
- Jan 26, 2011, 7:58:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MicroThreading/Demo/UMainForm.pas
r149 r150 14 14 15 15 TMainForm = class(TForm) 16 Button1: TButton; 16 17 Button2: TButton; 17 18 ButtonAddWorkers: TButton; … … 24 25 Label1: TLabel; 25 26 Label10: TLabel; 27 Label11: TLabel; 26 28 Label2: TLabel; 27 29 Label3: TLabel; … … 42 44 TimerRedraw: TTimer; 43 45 TimerSchedulerStart: TTimer; 46 procedure Button1Click(Sender: TObject); 44 47 procedure ButtonSchedulerStartStopClick(Sender: TObject); 45 48 procedure Button2Click(Sender: TObject); … … 87 90 if ButtonSchedulerStartStop.Caption = 'Start scheduler' then begin 88 91 ButtonSchedulerStartStop.Caption := 'Stop scheduler'; 89 Memo1.Clear;92 Scheduler.ThreadPoolSize := SpinEdit2.Value; 90 93 Scheduler.Active := True; 91 94 end else begin … … 93 96 Scheduler.Active := False; 94 97 end; 98 end; 99 100 procedure TMainForm.Button1Click(Sender: TObject); 101 begin 102 Memo1.Clear; 95 103 end; 96 104 … … 191 199 procedure TMainForm.FormClose(Sender: TObject; var CloseAction: TCloseAction); 192 200 begin 201 Scheduler.Active := False; 193 202 end; 194 203
Note:
See TracChangeset
for help on using the changeset viewer.