Ignore:
Timestamp:
Apr 19, 2018, 5:07:40 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
  • Modified: Center progress dialog to center of screen even with multiple jobs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/Demo/JobProgressView/UFormMain.pas

    r512 r513  
    1111type
    1212
    13   { TForm1 }
     13  { TFormMain }
    1414
    15   TForm1 = class(TForm)
     15  TFormMain = class(TForm)
    1616    ButtonTest: TButton;
    1717    CheckBoxAutoClose: TCheckBox;
     
    3232
    3333var
    34   Form1: TForm1;
     34  FormMain: TFormMain;
    3535
    3636implementation
     
    3838{$R *.lfm}
    3939
    40 { TForm1 }
     40{ TFormMain }
    4141
    42 procedure TForm1.ButtonTestClick(Sender: TObject);
     42procedure TFormMain.ButtonTestClick(Sender: TObject);
    4343var
    4444  I: Integer;
    4545begin
     46  ButtonTest.Enabled := False;
    4647  with JobProgressView1 do begin
    4748    AutoClose := CheckBoxAutoClose.Checked;
     
    5253    Start;
    5354  end;
     55  ButtonTest.Enabled := True;
    5456end;
    5557
    56 procedure TForm1.JobMethod(Job: TJob);
     58procedure TFormMain.JobMethod(Job: TJob);
    5759var
    5860  Count: Integer;
Note: See TracChangeset for help on using the changeset viewer.