Ignore:
Timestamp:
Apr 19, 2018, 5:07:40 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
  • Modified: Center progress dialog to center of screen even with multiple jobs.
Location:
Common/Demo/JobProgressView
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Common/Demo/JobProgressView/JobProgressViewDemo.lpi

    r512 r513  
    8080        <Filename Value="UFormMain.pas"/>
    8181        <IsPartOfProject Value="True"/>
    82         <ComponentName Value="Form1"/>
     82        <ComponentName Value="FormMain"/>
    8383        <ResourceBaseClass Value="Form"/>
    8484      </Unit1>
  • Common/Demo/JobProgressView/JobProgressViewDemo.lpr

    r512 r513  
    1616  RequireDerivedFormResource:=True;
    1717  Application.Initialize;
    18   Application.CreateForm(TForm1, Form1);
     18  Application.CreateForm(TFormMain, FormMain);
    1919  Application.Run;
    2020end.
  • Common/Demo/JobProgressView/UFormMain.lfm

    r512 r513  
    1 object Form1: TForm1
    2   Left = 515
     1object FormMain: TFormMain
     2  Left = 501
    33  Height = 480
    4   Top = 252
     4  Top = 296
    55  Width = 743
    66  Caption = 'JobProgressView demo'
     
    8989    ShowDelay = 0
    9090    AutoClose = False
    91     left = 488
    92     top = 72
     91    left = 480
     92    top = 120
    9393  end
    9494end
  • 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.