View Single Post
  #8  
Old 17-07-2020, 07:40
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Unhappy Label not showing up

Hi all, dipping my feet back into the Inno pool again - I have gotten to the point where I am trying to add a label, but the label does not show up. Perhaps I am missing something?

[CODE]
Code:
var
 DesktopIconCheckBox: TNewCheckBox;
 Progress: TNewProgressBar;
 RequiredLabel: TLabel;
Code:
  Requiredlabel := TLabel.Create(WizardForm);
  with Requiredlabel do
  begin
  SetBounds(10, 160, 390, 25);
  RequiredLabel.Caption := ExpandConstant('{cm:RequiredSpace} {#Size}');
  end;
{#Size} is a predefined variable.

Code:
procedure CurPageChanged(CurPageID: integer);
begin
  if CurPageID = wpWelcome then
  begin
  Progress.Hide;
  RequiredLabel.Show;
  end;
This is the code for the lable, but it does not show when the installer is running:



The pink highlights were the label is meant to be.
Reply With Quote