Raf_SE
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору [Setup] AppName=My Program AppVerName=My Program 1.5 DefaultDirName={pf}\My Program DefaultGroupName=My Program ComponentsListTVStyle=true [Languages] Name: russian; MessagesFile: compiler:Languages\Russian.isl [CustomMessages] russian.ComponentsInfoPanel1=Описание russian.ComponentsInfoPanel2=Наведите курсор мыши на компонент, чтобы прочитать его описание. [Components] Name: "Game"; Description: "Компонент 1:"; Flags: fixed; Types: full compact custom; Name: "Game\Full"; Description: "Компонент 2"; Flags: exclusive; Name: "Game\Lokal"; Description: "Компонент 3"; Flags: exclusive; Name: "SoundUnit"; Description: "Компонент 4:"; Flags: fixed; Types: full compact custom; Name: "SoundUnit\eng"; Description: "Компонент 5"; Flags: exclusive; Name: "SoundUnit\fra"; Description: "Компонент 6"; Flags: exclusive; ExtraDiskSpaceRequired: 74772480 Name: "SoundUnit\deu"; Description: "Компонент 7"; Flags: exclusive; ExtraDiskSpaceRequired: 76926976 Name: "SoundUnit\ita"; Description: "Компонент 8"; Flags: exclusive; ExtraDiskSpaceRequired: 80142336 [code] type TComponentDesc = record Description: String; Index: Integer; end; var Descs: array of TComponentDesc; Info: TNewStaticText; InfoCaption: TNewStaticText; InfoPanel: TPanel; Indx: Integer; procedure ShowDescription(Sender: TObject; X, Y, Index: Integer; Area: TItemArea); var i: Integer; begin Indx:=-1; for i:= 0 to GetArrayLength(Descs)-1 do begin if (Descs[i].Index=Index) then begin Indx:=i; Break end; end; if (Indx >=0)and(Area=iaItem) then Info.Caption:= Descs[Indx].Description else Info.Caption:= ExpandConstant('{cm:ComponentsInfoPanel2}'); end; procedure AddDescription(AIndex: Integer; ADescription: String); var i, k: Integer; begin i:= GetArrayLength(Descs); SetArrayLength(Descs, i+1); Descs[i].Description:= ADescription; Descs[i].Index:= AIndex-1 end; procedure InitializeWizard(); begin WizardForm.TypesCombo.Visible:ъlse; WizardForm.ComponentsList.Height := WizardForm.ComponentsList.Height + WizardForm.ComponentsList.Top - WizardForm.TYPESCOMBO.Top; WizardForm.ComponentsList.Top := WizardForm.TYPESCOMBO.Top; WizardForm.ComponentsList.Width := ScaleX(200); WizardForm.ComponentsList.OnItemMouseMove:= @ShowDescription InfoPanel := TPanel.Create(WizardForm); InfoPanel.Parent := WizardForm.SelectComponentsPage; InfoPanel.Caption := ''; InfoPanel.Top := WizardForm.ComponentsList.Top;//ScaleY(12); // поднимает панель, но опускает панель с текстом InfoPanel.Left := ScaleX(216); InfoPanel.Width := ScaleX(200); InfoPanel.Height := WizardForm.ComponentsList.Height; //ScaleY(40); InfoPanel.BevelInner := bvRaised; InfoPanel.BevelOuter := bvLowered; InfoCaption := TNewStaticText.Create(WizardForm); InfoCaption.Parent := WizardForm.SelectComponentsPage; InfoCaption.Caption := ExpandConstant('{cm:ComponentsInfoPanel1}'); InfoCaption.Left := ScaleX(224); InfoCaption.Top := InfoPanel.Top - ScaleY(5); //поднять слово Описание InfoCaption.Font.Color := clActiveCaption; Info := TNewStaticText.Create(WizardForm); Info.Parent := InfoPanel; Info.AutoSize := False; Info.Left := ScaleX(6); Info.Width := ScaleX(188); //шырина текста Info.Top := ScaleY(12); //Чем больше значение, тем ниже опускаеться полоска текста Info.Height := WizardForm.ComponentsList.Height - ScaleY(18); //Чем больше значение, тем ниже опускаеться полоска текста Info.Caption := ExpandConstant('{cm:ComponentsInfoPanel2}'); Info.WordWrap := true; AddDescription(1, 'Это дополнение выпущенно 31 июля 1998 года. Созданно Aztech New Media. Этот продукт был официально признан Blizzard Entertainment, разработчиком оригинальной игры. Дополнение содержит три кампании, по 10 миссий каждая, и более чем 100 дополнительных карт.123456789'); //первый параметр - это номер компонента, идет последовательно от начала записи компонентов AddDescription(2, 'Английская справка'); //Второй параметр - это собственно описание компонента AddDescription(3, 'Русская справка'); AddDescription(4, 'Плагины'); AddDescription(5, 'Внутреннего просмотра'); AddDescription(6, 'Архиваторные'); AddDescription(7, 'Системные'); AddDescription(8, 'CanonCam'); AddDescription(9, 'PluginManager'); AddDescription(10, 'Registry'); AddDescription(11, 'Services'); AddDescription(12, 'StartupGuard'); AddDescription(13, 'Другие'); end; | Всего записей: 1143 | Зарегистр. 06-08-2006 | Отправлено: 17:09 04-04-2012 | Исправлено: Raf_SE, 17:10 04-04-2012 |
|