Reputation: 4309
How to change the cursor while it is inside the Inno Setup's area on all controls when the wizard window shows up? I mean like a skin, when the Inno Setup is showing and available the skin is visible. So I mean when the mouse is inside the Inno Setup, it has its own design.
I tried to use this but I do not know where to invoke and using it:
procedure SetControlCursor(Control: TControl; Cursor: TCursor);
var
I: Integer;
begin
Control.Cursor := Cursor;
if Control is TWinControl then
begin
for I := 0 to TWinControl(Control).ControlCount - 1 do
begin
SetControlCursor(TWinControl(Control).Controls[I], Cursor);
end;
end;
end;
Upvotes: 0
Views: 175
Reputation: 469
If you want to change a cursor of all controls on start, just call your SetControlCursor
from InitializeWizard
:
procedure InitializeWizard();
begin
SetControlCursor(WizardForm, crHourGlass);
end;
Though, I do not understand why would you want to do that.
Upvotes: 1