Search code examples
inno-setupcaptionpascalscript

Finding out Inno Setup WizardForm Caption Font Size, Font Name and Font Color and Center the WizardForm Caption


I need to find what is the Font.Color , Font.Size and Font.Name of Inno Setup WizardForm.Caption to get its (It is a String) Extent Point using GetTextExtentPoint32.

Please let me know how can I find the above properties of WizardForm. (Not the System Font Properties). I want to get current Font Information of WizardForm according to the .cjstyles Skin I am using.

And I also like to know how to center Wizard Window Title using Pascal Script after knowing those font information.

Thanks in Advance.


Solution

  • I do not think this is possible.

    The window title is custom-drawn by the ISSkin DLL. So Windows does not know the font size, hence you cannot use Windows API.

    And ISSkin does not export any function to retrieve this information.