3
A
回答
2
PageNameLabel
和PageDescriptionLabel
是TNewStaticText
組件。該組件不支持透明度。儘管TLabel
組件具有相似的功能,但它確實支持透明度(in Unicode version of Inno Setup only)。
因此,您可以用TLabel
等效替換這兩個組件。然後,您需要確保,每當Inno安裝程序更新原始組件時,新的自定義組件的標題都會更新。對於這兩個組件,這很容易,因爲它們只在頁面更改時纔會更新。因此,您可以從更新您的自定義組件。
function CloneStaticTextToLabel(StaticText: TNewStaticText): TLabel;
begin
Result := TLabel.Create(WizardForm);
Result.Parent := StaticText.Parent;
Result.Left := StaticText.Left;
Result.Top := StaticText.Top;
Result.Width := StaticText.Width;
Result.Height := StaticText.Height;
Result.AutoSize := StaticText.AutoSize;
Result.ShowAccelChar := StaticText.ShowAccelChar;
Result.WordWrap := StaticText.WordWrap;
Result.Font := StaticText.Font;
StaticText.Visible := False;
end;
var
PageDescriptionLabel: TLabel;
PageNameLabel: TLabel;
procedure InitializeWizard();
begin
{ ... }
{ Create TLabel equivalent of standard TNewStaticText components }
PageNameLabel := CloneStaticTextToLabel(WizardForm.PageNameLabel);
PageDescriptionLabel := CloneStaticTextToLabel(WizardForm.PageDescriptionLabel);
end;
procedure CurPageChanged(CurPageID: Integer);
begin
{ Update the custom TLabel components from the standard hidden components }
PageDescriptionLabel.Caption := WizardForm.PageDescriptionLabel.Caption;
PageNameLabel.Caption := WizardForm.PageNameLabel.Caption;
end;
比較容易的方式是改變原來的標籤背景色:
Inno Setup - Change size of page name and description labels
相關問題
- 1. Inno Setup的 - 頁面名稱和說明更改尺寸標籤
- 2. Inno Setup - 更改任務描述標籤的顏色並換行
- 3. Inno Setup組件的詳細描述
- 4. 在運行條目描述中使用標準Inno Setup消息
- 5. Inno Setup卸載可執行文件的位置和名稱
- 6. Inno Setup的 - 更改特定組件的描述顏色
- 7. Inno-Setup目標文件夾
- 8. GetComputerNameString Inno Setup的
- 9. meta標籤描述
- 10. 元描述標籤
- 11. 找出Inno Setup的WizardForm標題字體大小,字體名稱和字體顏色和中心WizardForm標題
- 12. 桌面應用程序中的描述性標籤名稱
- 13. Noindex頁面是否需要元描述和關鍵字標籤?
- 14. 是否有描述Inno Setup WizardForm的每個部分如何連接的文檔?
- 15. 簽名的HOG描述符
- 16. Inno Setup的頁面順序
- 17. 在Inno Setup的
- 18. 如何簽名由OCRA和Inno Setup打包的應用程序?
- 19. 更新圖標,Inno Setup的
- 20. 沒有Inno Setup的圖標
- 21. preg_match_all項目名稱和描述
- 22. Inno Setup自定義頁面
- 23. Inno Setup - 如何本地化組件和類型名稱?
- 24. Inno Setup圖像下載
- 25. Inno Setup torrent下載執行
- 26. 在asp網站中的標題標籤和描述標籤
- 27. Inno Setup - Conditional DisableDirPage
- 28. Inno Setup tmp阻止
- 29. Inno Setup - 關於#define
- 30. 多描述meta標籤
呀。我安裝了Unicode版本的Inno Setup,一切正常。謝謝你的一切。 –