Changeset 155 for MicroThreading/Demo/UMainForm.pas
- Timestamp:
- Jan 28, 2011, 7:33:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MicroThreading/Demo/UMainForm.pas
r154 r155 55 55 procedure ButtonClearMicroThreadsClick(Sender: TObject); 56 56 procedure CheckBoxUseMainThreadChange(Sender: TObject); 57 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);58 57 procedure FormCreate(Sender: TObject); 59 58 procedure FormDestroy(Sender: TObject); … … 208 207 end; 209 208 210 procedure TMainForm.Form Close(Sender: TObject; var CloseAction: TCloseAction);209 procedure TMainForm.FormDestroy(Sender: TObject); 211 210 begin 212 211 MainScheduler.Active := False; 213 end;214 215 procedure TMainForm.FormDestroy(Sender: TObject);216 begin217 MainScheduler.Free;218 212 end; 219 213 … … 234 228 Item.SubItems.Add(IntToStr(Priority)); 235 229 Item.SubItems.Add(MicroThreadStateText[State]); 230 Item.SubItems.Add(MicroThreadBlockStateText[BlockState]); 236 231 Item.SubItems.Add(FloatToStr(ExecutionTime)); 237 232 Item.SubItems.Add(IntToStr(Trunc(Completion * 100)) + '%');
Note:
See TracChangeset
for help on using the changeset viewer.