【发布时间】:2017-07-12 03:32:12
【问题描述】:
我希望任务在其中一个被选中时显示不同的图像。
例如,如果我有三个不同的任务:
Task 1: Standard version
Task 2: Lite version
Task 3: Pro version
- 选中任务 1 时必须显示图像。
- 选中任务 2 时,必须隐藏任务 1 图像并显示任务 2 图像。
- 选中任务 3 时,必须将其他任务隐藏在任务图像下方并显示任务 3 图像。
这里有一些代码
[Code]
{ RedesignWizardFormBegin } { Don't remove this line! }
{ Don't modify this section. It is generated automatically. }
var
BitmapImage1: TBitmapImage;
procedure RedesignWizardForm;
begin
{ BitmapImage1 }
BitmapImage1 := TBitmapImage.Create(WizardForm);
with BitmapImage1 do
begin
Parent := WizardForm.SelectTasksPage;
Left := ScaleX(320);
Top := ScaleY(88);
Width := ScaleX(57);
Height := ScaleY(57);
ExtractTemporaryFile('WizardForm.BitmapImage1.bmp');
Bitmap.LoadFromFile(ExpandConstant('{tmp}\WizardForm.BitmapImage1.bmp'));
end;
with WizardForm.TasksList do
begin
Width := ScaleX(257);
Height := ScaleY(200);
Visible := False;
end;
end;
【问题讨论】: