I frequently find that I need the names of built-in controls e.g. WizardForm.StatusLabel. Is there a definitive reference to all the built-in control names somewhere, and if not, how do you go about finding these? As a worked example, how would I find the name of the control that shows the filename that is being extracted on the WizardForm.InstallingPage i.e. the label underneath the WizardForm.StatusLabel?
Asked
Active
Viewed 506 times
4
Robert Wigley
- 1,917
- 22
- 42
1 Answers
6
The only public documentation is TWizardForm reference. It lists names of all controls. But in a rather random order.
I find it way easier to check Wizard.dfm in Inno Setup source code repository. It defines the controls in their hierarchy. So if you search for InstallingPage, you will find that there are these controls:
object FInstallingPage: TNewNotebookPage
object FFilenameLabel: TNewStaticText
...
end
object FStatusLabel: TNewStaticText
...
end
object FProgressGauge: TNewProgressBar
...
end
end
For a use in Pascal Script, drop the F prefix (e.g. instead of FFilenameLabel, use FilenameLabel).
Martin Prikryl
- 188,800
- 56
- 490
- 992
-
1Excellent! This is just what I was after. The answer to the second half of my question is `WizardForm.FilenameLabel` then. Thanks Martin. – Robert Wigley Jul 13 '17 at 13:04