CnPack Forum


 
Subject: 格式化出错. 代码中包含窗体动态生成.
fxerp@qq.com
新警察
Rank: 1



UID 233612
Digest Posts 0
Credits 24
Posts 6
点点分 24
Reading Access 10
Registered 2015-8-25
Status Offline
Post at 2015-9-11 15:29  Profile | Blog | P.M. 
格式化出错. 代码中包含窗体动态生成.

procedure CreateProgressForm;
  begin
    ProgressForm := Forms.TForm.Create(nil);
    with ProgressForm do
    begin
      Font.Name := '宋体';
      Font.Size := 10;
      BorderStyle := bsNone;
      Width := 280;
      Height := 120;
      BorderWidth := 1;
      Color := clBackground;
      Position := poOwnerFormCenter;
    end;
    Panel := TPanel.Create(ProgressForm);
    with Panel do { Create Panel }
    begin
      Parent := ProgressForm;
      Align := alClient;
      BevelInner := bvNone;
      BevelOuter := bvNone;
      Caption := '';
    end;

    Prompt := TLabel.Create(Panel);
    with Prompt do { Create Label }
    begin
      Parent := Panel;
      Left := 20;
      Top := 25;
      Caption := '正在启动Excel,请稍候……';
    end;

    progressBar := TProgressBar.Create(panel);
    with ProgressBar do { Create ProgressBar }
    begin
      Step := 1;
      Parent := Panel;
      Smooth := true;
      Left := 20;
      Top := 50;
      Height := 18;
      Width := 260;
    end;

    Button := TButton.Create(Panel);
    with Button do { Create Cancel Button }
    begin
      Parent := Panel;
      Left := 115;
      Top := 80;
      Caption := '关闭';
    end;
    ReSetObjEvent(@@Button.OnClick, @ButtonClick, Button);
    ProgressForm.FormStyle := fsStayOnTop;
    skn1.SkinForm(ProgressForm.Handle);
    ProgressForm.Show;
    ProgressForm.Update;
  end;
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6756
Posts 3554
点点分 6756
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-15 15:18  Profile | Blog | P.M. 
经过查证,是Align这种声明的关键字导致的问题,我们将在下一每日构建版里修正。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6756
Posts 3554
点点分 6756
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2015-9-17 14:53  Profile | Blog | P.M. 
Top
 




All times are GMT++8, the time now is 2024-4-19 01:15

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.005970 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP