修改Inno向导页面的尺寸,背景图像等

马可29

我有这部分代码可以调整我的欢迎页面,但完成的页面仍然是默认的Inno页面,其侧面带有丑陋的Wizardpicture。我想像我欢迎那样对完成的页面做同样的事情

[Code]
    procedure InheritBoundsRect(ASource, ATarget: TControl);
    begin
      ATarget.Left := 210;
      ATarget.Top := ASource.Top;
      ATarget.Width := 295;
      ATarget.Height := ASource.Height;
    end;

    procedure InitializeWizard;
    var
      TopWelcomeLabel: TLabel;
      BottomWelcomeLabel: TLabel;
    begin

      WizardForm.WizardBitmapImage.Align := alClient;
      WizardForm.WizardBitmapImage.Bitmap.LoadFromFile('Q:\Inno\wizardimages\new\bmp.bmp');
      TopWelcomeLabel := TLabel.Create(WizardForm);
      TopWelcomeLabel.Parent := WizardForm.WelcomeLabel1.Parent;
      TopWelcomeLabel.Font := WizardForm.WelcomeLabel1.Font;
      TopWelcomeLabel.Caption := WizardForm.WelcomeLabel1.Caption;
      TopWelcomeLabel.WordWrap := WizardForm.WelcomeLabel1.WordWrap;
      InheritBoundsRect(WizardForm.WelcomeLabel1, TopWelcomeLabel);
      WizardForm.WelcomeLabel1.Visible := False;

      BottomWelcomeLabel := TLabel.Create(WizardForm);
      BottomWelcomeLabel.Parent := WizardForm.WelcomeLabel2.Parent;
      BottomWelcomeLabel.Font := WizardForm.WelcomeLabel2.Font;
      BottomWelcomeLabel.Caption := WizardForm.WelcomeLabel2.Caption;
      BottomWelcomeLabel.WordWrap := WizardForm.WelcomeLabel2.WordWrap;
      InheritBoundsRect(WizardForm.WelcomeLabel2, BottomWelcomeLabel);
      WizardForm.WelcomeLabel2.Visible := False;
    end;

用解决方案编辑:

现在,在小伙子贝娄的帮助下,这似乎是新代码,效果很好

[Code]
    procedure InheritBoundsRect(ASource, ATarget: TControl);
    begin
      ATarget.Left := 210;
      ATarget.Top := ASource.Top;
      ATarget.Width := 295;
      ATarget.Height := ASource.Height;
    end;

    procedure InitializeWizard;
    var
      TopWelcomeLabel: TLabel;
      BottomWelcomeLabel: TLabel;
    begin

      WizardForm.WizardBitmapImage.Align := alClient;
      WizardForm.WizardBitmapImage.Bitmap.LoadFromFile('bmp.bmp');
      TopWelcomeLabel := TLabel.Create(WizardForm);
      TopWelcomeLabel.Parent := WizardForm.WelcomeLabel1.Parent;
      TopWelcomeLabel.Font := WizardForm.WelcomeLabel1.Font;
      TopWelcomeLabel.Caption := WizardForm.WelcomeLabel1.Caption;
      TopWelcomeLabel.WordWrap := WizardForm.WelcomeLabel1.WordWrap;
      InheritBoundsRect(WizardForm.WelcomeLabel1, TopWelcomeLabel);
      WizardForm.WelcomeLabel1.Visible := False;
      BottomWelcomeLabel := TLabel.Create(WizardForm);
      BottomWelcomeLabel.Parent := WizardForm.WelcomeLabel2.Parent;
      BottomWelcomeLabel.Font := WizardForm.WelcomeLabel2.Font;
      BottomWelcomeLabel.Caption := WizardForm.WelcomeLabel2.Caption;
      BottomWelcomeLabel.WordWrap := WizardForm.WelcomeLabel2.WordWrap;
      InheritBoundsRect(WizardForm.WelcomeLabel2, BottomWelcomeLabel);
      WizardForm.WelcomeLabel2.Visible := False;

      WizardForm.WizardBitmapImage2.Align := alClient;


//Stackoverflow changes start here...

      WizardForm.WizardBitmapImage2.Bitmap.LoadFromFile('bmp.bmp');

      WizardForm.FinishedLabel.Left := 210;
      WizardForm.FinishedLabel.Width := 265;

      WizardForm.FinishedHeadingLabel.Left := 210;
      WizardForm.FinishedHeadingLabel.Width := 265

      WizardForm.RunList.Left := 210;
    end;
TLama

最后一页中的组件名称为:

  • 完成标签
  • 标题标签完成
  • WizardBitmapImage2

我在这张照片上标记了它们:

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

页面加载随机背景图像

来自分类Dev

关于在导航栏中更改活动页面的背景图像的问题

来自分类Dev

如何为KendoUI页面设置背景图像

来自分类Dev

在所有页面上使用大虾的背景图像

来自分类Dev

NetLogo:如何确保背景图像尺寸适合世界尺寸?

来自分类Dev

相对于其自身尺寸缩放背景图像?

来自分类Dev

向下滚动页面时移动的背景图像

来自分类Dev

使用背景图像处理新的iPhone屏幕尺寸

来自分类Dev

Xamarin形成所有页面的背景图像

来自分类Dev

导航抽屉标题的背景图像尺寸

来自分类Dev

可见每面的背景图像

来自分类Dev

背景图像和屏幕尺寸:如何正确执行?

来自分类Dev

如何使用React应用页面特定的全屏背景图像?

来自分类Dev

Highcharts背景图像尺寸选项

来自分类Dev

UWP以编程方式更改XAML页面的背景图像c#

来自分类Dev

整个Ionic(4)页面的背景图像不重叠页眉和页脚

来自分类Dev

python pygame背景图像随屏幕尺寸而变化

来自分类Dev

背景图像尺寸问题

来自分类Dev

NetLogo:如何确保背景图像尺寸适合世界尺寸?

来自分类Dev

如何根据屏幕尺寸设置背景图像?

来自分类Dev

Fullpage.JS背景图像的理想图像尺寸

来自分类Dev

覆盖整个页面的背景图片

来自分类Dev

与Div尺寸减小同步地缩小背景图像

来自分类Dev

Inno Setup安装程序向导的“完成/完成”页面左侧的高图像控件的名称是什么?

来自分类Dev

全尺寸页面背景图像忽略边距

来自分类Dev

如何在 react-native-navigation 中向导航器添加背景图像

来自分类Dev

将背景图像拉伸到上面的组件

来自分类Dev

如何更改每个页面的背景图像

来自分类Dev

使用引导水平堆叠全尺寸背景图像?

Related 相关文章

热门标签

归档