Reputation: 805
i want to get the text in TNewStaticText bold . is there any method available in inno setup
Upvotes: 1
Views: 3127
Reputation: 76693
The bold text you can have if you include the fsBold
style to the Font.Style
property of your static text control, for instance:
[Code]
procedure InitializeWizard;
var
StaticText: TNewStaticText;
begin
StaticText := TNewStaticText.Create(WizardForm);
StaticText.Parent := WizardForm;
StaticText.Left := 0;
StaticText.Top := WizardForm.NextButton.Top;
StaticText.Font.Style := [fsBold];
StaticText.Caption := 'This is a bold text';
end;
Just out of curiosity, there are also other font styles that you can include to the Font.Style
property. Here is the list of all the available styles:
These styles you can combine however you want, so for instance to make a bold underlined text control, you can set your Font.Style
property this way:
StaticText.Font.Style := [fsBold, fsUnderline];
Upvotes: 3