innonewbie
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору [code] var TDV: TFolderTreeView; TFV: TStartMenuFolderTreeView; procedure TDVOnChange(Sender: TObject); begin WizardForm.DirEdit.Text:= AddBackslash(TDV.Directory)+'MyApp'; end; procedure TFVOnChange(Sender: TObject); begin WizardForm.GroupEdit.Text:= AddBackslash(TFV.Directory)+'MyApp'; end; procedure InitializeWizard(); begin TDV:= TFolderTreeView.Create(WizardForm); TDV.Top:= WizardForm.DirEdit.Top+28; TDV.Width:= 417; TDV.Height:= 100; TDV.OnChange:= @TDVOnChange; TDV.Parent:= WizardForm.SelectDirPage; TFV:= TStartMenuFolderTreeView.Create(WizardForm); TFV.Top:= WizardForm.GroupEdit.Top+28; TFV.Width:= 417; TFV.Height:= 100; TFV.SetPaths(ExpandConstant('{userprograms}'),ExpandConstant('{commonprograms}'),ExpandConstant('{userstartup}'),ExpandConstant('{commonstartup}')); TFV.OnChange:= @TFVOnChange; TFV.Parent:= WizardForm.SelectProgramGroupPage; end; |