I have installation script that is using TInputQueryWizardPage. How can I increase height of this page? For example if I have this...
procedure InitializeWizard;
begin
MyPage := CreateInputQueryPage(wpReady,
'Some Information', 'Enter Information',
'Enter information, then click Next.');
MyPage.Add('info1', False);
MyPage.Add('info2', False);
MyPage.Add('info3', False);
MyPage.Add('info4', False);
MyPage.Add('info5', False);
MyPage.Values[0] := GetPreviousData('info1', '');
MyPage.Values[1] := GetPreviousData('info2', '');
MyPage.Values[2] := GetPreviousData('info3', '');
MyPage.Values[3] := GetPreviousData('info4', '');
MyPage.Values[4] := GetPreviousData('info5', '');
end;
...then last edit box is not visible because it cannot fit on the form.
Thank you for your time
Since the wizard pages themselves don't support scroll bars and there is no container control with scroll bar support, I would suggest you to shift those edit fields with their corresponding labels upward. You're having 5 of them which is a maximum which looks fine for me if you display a subcaption, what you seem to do. The following script shows how to shift those items upward by the amount of pixels specified in the OffsetPixels
constant:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
[Code]
const
OffsetPixels = 11;
var
MyPage: TInputQueryWizardPage;
procedure OffsetPageItem(Page: TInputQueryWizardPage; Index,
Offset: Integer);
begin
Page.Edits[Index].Top := Page.Edits[Index].Top + Offset;
Page.PromptLabels[Index].Top := Page.PromptLabels[Index].Top +
Offset;
end;
procedure InitializeWizard;
var
Index: Integer;
begin
MyPage := CreateInputQueryPage(wpWelcome, 'Caption',
'Description', 'SubCaption');
Index := MyPage.Add('info1', False);
Index := MyPage.Add('info2', False);
OffsetPageItem(MyPage, Index, -Index * OffsetPixels);
Index := MyPage.Add('info3', False);
OffsetPageItem(MyPage, Index, -Index * OffsetPixels);
Index := MyPage.Add('info4', False);
OffsetPageItem(MyPage, Index, -Index * OffsetPixels);
Index := MyPage.Add('info5', False);
OffsetPageItem(MyPage, Index, -Index * OffsetPixels);
end;
And a screenshot:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments