インストーラのインストール手順で、下のイメージのような内容を表示したい...私は内容を表示するためにメモを使用しましたが、メモは適切なコントロールではありません。ユーザープットがメモフィールドに焦点を当てた場合、それはテキストボックスのように見えます...ユーザーは、このステップに来るとき、最初にメモフィールドを選択します。..画像の下に表示さ... innoセットアップインストーラで複数行の内容を表示するコントロール
答えて
使用TLabel
またはTNewStaticText
いずれかの成分(
- :
TNewStaticText
は、以下のInnoSetupの内側に好適)と、それを設定しているようですFalse
にプロパティTrue
AutoSize
プロパティそれからちょうどあなたの所望の位置にコンポーネントを伸ばし、テキストは、この例に示されているだけのよう、その範囲に収まる: [Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
[Code]
const
LoremIpsum =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin mauris ' +
'lorem, ullamcorper sit amet tincidunt ac, varius at ante. Aenean pretium, ' +
'tortor non congue pharetra, ante urna consectetur mi, vitae congue arcu est ' +
'eleifend nisl.';
procedure InitializeWizard;
var
CustomPage: TWizardPage;
StandardDescLabel: TLabel;
StandardRadioButton: TNewRadioButton;
AdvancedDescLabel: TLabel;
AdvancedRadioButton: TNewRadioButton;
begin
CustomPage := CreateCustomPage(wpWelcome, 'Installation type', '');
StandardRadioButton := TNewRadioButton.Create(WizardForm);
StandardRadioButton.Parent := CustomPage.Surface;
StandardRadioButton.Checked := True;
StandardRadioButton.Top := 16;
StandardRadioButton.Width := CustomPage.SurfaceWidth;
StandardRadioButton.Font.Style := [fsBold];
StandardRadioButton.Font.Size := 9;
StandardRadioButton.Caption := 'Standard Installation'
StandardDescLabel := TLabel.Create(WizardForm);
StandardDescLabel.Parent := CustomPage.Surface;
StandardDescLabel.Left := 8;
StandardDescLabel.Top := StandardRadioButton.Top + StandardRadioButton.Height + 8;
StandardDescLabel.Width := CustomPage.SurfaceWidth;
StandardDescLabel.Height := 40;
StandardDescLabel.AutoSize := False;
StandardDescLabel.Wordwrap := True;
StandardDescLabel.Caption := LoremIpsum;
AdvancedRadioButton := TNewRadioButton.Create(WizardForm);
AdvancedRadioButton.Parent := CustomPage.Surface;
AdvancedRadioButton.Top := StandardDescLabel.Top + StandardDescLabel.Height + 16;
AdvancedRadioButton.Width := CustomPage.SurfaceWidth;
AdvancedRadioButton.Font.Style := [fsBold];
AdvancedRadioButton.Font.Size := 9;
AdvancedRadioButton.Caption := 'Advanced Installation'
AdvancedDescLabel := TLabel.Create(WizardForm);
AdvancedDescLabel.Parent := CustomPage.Surface;
AdvancedDescLabel.Left := 8;
AdvancedDescLabel.Top := AdvancedRadioButton.Top + AdvancedRadioButton.Height + 8;
AdvancedDescLabel.Width := CustomPage.SurfaceWidth;
AdvancedDescLabel.Height := 40;
AdvancedDescLabel.AutoSize := False;
AdvancedDescLabel.Wordwrap := True;
AdvancedDescLabel.Caption := LoremIpsum;
end;
結果:
[docs](http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/StdCtrls_TLabel_AutoSize.html)によれば、 'AutoSize'を' False'に設定する必要はありません。そして私はそれをテストしたところ、 'AutoSize'を' True'でうまく使っているようです。 – Ignitor
@Ignitor、私はそこに保管します。ちょうどラベルが自動サイズ設定されるべき場合です。ドキュメントで言及されているように、* "テキストが変わるたびにラベルのサイズが再調整されます*"と私はそれを変更していますか? – TLama
さて、質問が必要です。ラベルに自動的に高さを設定したくない場合は、 'AutoSize'を' False'に設定します。 'AutoSize:= True;'であっても、 'WordWarp'が有効になっているとき、ラベルはwidth__を調整しません。しかし、主に私が指摘したいのは、** WordWrap:= True'が動作するために 'AutoSize:= False'を設定する必要はありません**。 – Ignitor
- 1. 表示内容 - XAMLコントロール
- 2. 複数選択の内容を表示
- 3. MouseOverでListBoxItemの内容を別のコントロールに表示する
- 4. InnoセットアップインストーラでWindowsシェル拡張DLLをインストールする
- 5. Python - 複数のファイルの内容をグラフで表示
- 6. drupal_set_messageで変数の内容を表示
- 7. Innoセットアップインストーラのデフォルトでは、フルインストールの代わりにカスタムインストール
- 8. FileUploadコントロール - 表示ファイルの内容にエラーがあります
- 9. 複数のコントロールを一度に表示
- 10. 表示内容
- 11. 内容を表示する表のドロップダウン
- 12. swift 3コンテナの表示内容の表示内容の更新
- 13. Innoセットアップインストーラに間違ったテキストエンコーディングがあります
- 14. プログラムの引数テキストボックスの内容表示
- 15. エンティティの表示内容(表)
- 16. リンクリストの内容を表示
- 17. ドロップダウンの内容を表示
- 18. ナビゲーションバーの内容を表示
- 19. 表示内容は
- 20. PrintPreviewコントロールで複数ページを表示する方法#
- 21. フィールド内でCSVReaderが複数の行を1行で表示する理由
- 22. バケツの内容を表示する
- 23. AJAXリクエストの内容を表示する
- 24. フォルダーの内容を表示するエラー
- 25. Inno Setup - 複数の画像を表示する(スライドショー)wpインストール中のページProgressGauge bar
- 26. ウェブスクレイピングでセル内に複数の行が表示される
- 27. divの内容を2行だけ表示する
- 28. WebBrowserコントロールの内容を印刷する
- 29. 表示タブの内容 - Javascript
- 30. 表示マップの内容
'TLabel'または' TNewStaticText'を使って 'WordWrap'をTrueに、' AutoSize'をFalseに設定します。 – TLama