Скрытый текст
[spoiler]

[/spoiler]
[/spoiler]Код: Выделить всё
[setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Components]
Name: Mode; Description: mode; Types: custom; flags: fixed
Name: Mode/SPOnly; Description: SPOnly; Flags: disablenouninstallwarning
Name: Mode/MPOnly; Description: MPOnly; Flags: disablenouninstallwarning
Name: Mode2; Description: mode2; Types: custom; flags: fixed
Name: Mode2/SPOnly2; Description: SPOnly2; Flags: disablenouninstallwarning
Name: Mode2/MPOnly2; Description: MPOnly2; Flags: disablenouninstallwarning
[Code]
const
UNDEF_INDEX = -777;
var
LastIndex: Integer;
procedure CompOnItemMouseMove(Sender: TObject; X, Y: Integer; Index: Integer; Area: TItemArea);
begin
if Index = -1 then Exit;
if Index = LastIndex then Exit;
try
case TNewCheckListBox(Sender).ItemCaption[Index] of
'mode': TNewCheckListBox(Sender).Hint := 'Опись1';
'SPOnly': TNewCheckListBox(Sender).Hint := 'Опись2';
'MPOnly': TNewCheckListBox(Sender).Hint := 'Опись3';
'mode2': TNewCheckListBox(Sender).Hint := 'Опись4';
'SPOnly2': TNewCheckListBox(Sender).Hint := 'Опись5';
'MPOnly2': TNewCheckListBox(Sender).Hint := 'Опись6';
else
begin
TNewCheckListBox(Sender).ShowHint := False;
LastIndex := UNDEF_INDEX;
Exit;
end;
end;
TNewCheckListBox(Sender).ShowHint := True;
finally
LastIndex := Index;
end;
end;
procedure CompOnMouseLeave(Sender: TObject);
begin
WizardForm.ComponentsList.ShowHint := False;
end;
procedure InitializeWizard();
begin
LastIndex := UNDEF_INDEX;
WizardForm.ComponentsList.OnItemMouseMove := @CompOnItemMouseMove;
WizardForm.ComponentsList.OnMouseLeave := @CompOnMouseLeave;
end;Код: Выделить всё
ShowHint := True;
Hint := 'This is' + #13#10 + 'hint.';