Skip to content

Commit

Permalink
Changed: skip 'A demo program ...' if CompName is empty
Browse files Browse the repository at this point in the history
- Allows using dialog not only for component demos
  • Loading branch information
BerndGabriel committed May 6, 2017
1 parent d1b3cd7 commit b54e5ab
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Demos/Main Demos/Htmlabt.pas
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,14 @@ constructor TAboutBox.CreateIt(Owner: TComponent; const ProgName, CompName, Rema
Body :=
'<body text="000080">' +
'<center>' +
'<h1>' + ProgName + '</h1>' +
'<font color="Maroon">A demo program for the <b>' + CompName + '</b> component</font>' +
'<h3>Version ' + VersionNo + '</h3>' +
'<h1>' + ProgName + '</h1>';

if Length(CompName) > 0 then
Body := Body +
'<font color="Maroon">A demo program for the <b>' + CompName + '</b> component</font>' +
'<h3>Version ' + VersionNo + '</h3>';

Body := Body +
Remarks +
'</center>' +
ConfigInfo +
Expand Down

0 comments on commit b54e5ab

Please sign in to comment.