Podobne
- Strona startowa
- Steven Rosefielde, D. Quinn Mil Masters of Illusion, American L
- Masterton Graham Wojownicy Nocy t.1 (SCAN dal 90
- Masterton Graham Nocna Plaga (SCAN dal 1062)
- Sarah Masters Voices 1 Sugar Strands
- Masterton Graham Manitou (SCAN dal 826)
- Masterton Graham Zwierciadlo piekiel
- TCP IP
- Cole Allan Bunch Chris Swiaty Wilka (2)
- Anne McCaffrey Piesn krysztalu (2)
- King Stephen Talizman
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- psmlw.htw.pl
Cytat
Do celu tam się wysiada. Lec Stanisław Jerzy (pierw. de Tusch-Letz, 1909-1966)
A bogowie grają w kości i nie pytają wcale czy chcesz przyłączyć się do gry (. . . ) Bogowie kpią sobie z twojego poukładanego życia (. . . ) nie przejmują się zbytnio ani naszymi planami na przyszłość ani oczekiwaniami. Gdzieś we wszechświecie rzucają kości i przypadkiem wypada twoja kolej. I odtąd zwyciężyć lub przegrać - to tylko kwestia szczęścia. Borys Pasternak
Idąc po kurzych jajach nie podskakuj. Przysłowie szkockie
I Herkules nie poradzi przeciwko wielu.
Dialog półinteligentów równa się monologowi ćwierćinteligenta. Stanisław Jerzy Lec (pierw. de Tusch - Letz, 1909-1966)
[ Pobierz całość w formacie PDF ]
.Here is a small excerpt:[MainWindow]Create=1Visible=1State=0Left=2Top=0Width=800Height=97NOTEA lot of information related to the status of the Delphi environment is saved in the WindowsRegistry, as well as in DSK and other files.I ve already indicated a few special undocumentedentries of the Registry you can use to activate specific features.You should explore theHKEY_CURRENT_USER\Software\Borland\Delphi\6.0 section of the Registry to examineall the settings of the Delphi IDE (including all those you can modify with the Project Optionsand the Environment Options dialog boxes, as well as many others).Copyright ©2001 SYBEX, Inc., Alameda, CA www.sybex.com2874c01.qxd 7/2/01 2:40 PM Page 4444 Chapter 1 " The Delphi 6 IDEThe Object RepositoryDelphi has menu commands you can use to create a new form, a new application, a new datamodule, a new component, and so on.These commands are located in the File ¢' New menuand in other pull-down menus.What happens if you simply select File ¢' New ¢' Other?Delphi opens the Object Repository, which is used to create new elements of any kind:forms, applications, data modules, thread objects, libraries, components, automation objects,and more.The New dialog box (shown in Figure 1.11) has several pages, hosting all the new elementsyou can create, existing forms and projects stored in the Repository, Delphi wizards, and theforms of the current project (for visual form inheritance).The pages and the entries in thistabbed dialog box depend on the specific version of Delphi, so I won t list them here.FI GURE 1.11:The first page of the Newdialog box, generallyknown as the ObjectRepositoryTIPThe Object Repository has a shortcut menu that allows you to sort its items in different ways(by name, by author, by date, or by description) and to show different views (large icons, smallicons, lists, and details).The Details view gives you the description, the author, and the date ofthe tool, information that is particularly important when looking at wizards, projects, or formsthat you ve added to the Repository.Copyright ©2001 SYBEX, Inc., Alameda, CA www.sybex.com2874c01.qxd 7/2/01 2:40 PM Page 45The Object Repository 45The simplest way to customize the Object Repository is to add new projects, forms, and datamodules as templates.You can also add new pages and arrange the items on some of them (notincluding the New and current project pages).Adding a new template to Delphi s ObjectRepository is as simple as using an existing template to build an application.When you havea working application you want to use as a starting point for further development of similarprograms, you can save the current status to a template, ready to use later on.Simply use theProject ¢' Add To Repository command, and fill in its dialog box.Just as you can add new project templates to the Object Repository, you can also add newform templates.Simply move to the form that you want to add and select the Add To Reposi-tory command of its shortcut menu.Then indicate the title, description, author, page, andicon in its dialog box.You might want to keep in mind that as you copy a project or form template to the reposi-tory and then copy it back to another directory, you are simply doing a copy and paste opera-tion.This isn t much different than copying the files manually.The Empty Project TemplateWhen you start a new project, it automatically opens a blank form, too.If you want to base anew project on one of the form objects or Wizards, this is not what you want, however.Tosolve this problem, you can add an Empty Project template to the Gallery.The steps required to accomplish this are simple:1.Create a new project as usual.2.Remove its only form from the project.3.Add this project to the templates, naming it Empty Project.When you select this project from the Object Repository, you gain two advantages: You haveyour project without a form, and you can pick a directory where the project template s files willbe copied.There is also a disadvantage you have to remember to use the File ¢' Save ProjectAs command to give a new name to the project, because saving the project any other wayautomatically uses the default name in the template.To further customize the Repository, you can use the Tools ¢' Repository command.Thisopens the Object Repository dialog box, which you can use to move items to different pages,to add new elements, or to delete existing ones.You can even add new pages, rename orCopyright ©2001 SYBEX, Inc., Alameda, CA www.sybex.com2874c01.qxd 7/2/01 2:40 PM Page 4646 Chapter 1 " The Delphi 6 IDEdelete them, and change their order.An important element of the Object Repository setup isthe use of defaults:" Use the New Form check box below the list of objects to designate a form as the one tobe used when a new form is created (File ¢' New Form)." The Main Form check box indicates which type of form to use when creating the mainform of a new application (File ¢' New Application) when no special New Project isselected." The New Project check box, available when you select a project, marks the default pro-ject that Delphi will use when you issue the File ¢' New Application command.Only one form and only one project in the Object Repository can have each of these threesettings marked with a special symbol placed over its icon.If no project is selected as NewProject, Delphi creates a default project based on the form marked as Main Form.If no formis marked as the main form, Delphi creates a default project with an empty form.When you work on the Object Repository, you work with forms and modules saved in theOBJREPOS subdirectory of the Delphi main directory.At the same time, if you use a form orany other object directly without copying it, then you end up having some files of your pro-ject in this directory.It is important to realize how the Repository works, because if you wantto modify a project or an object saved in the Repository, the best approach is to operate onthe original files, without copying data back and forth to the Repository.Installing New DLL WizardsTechnically, new wizards come in two different forms: They may be part of components or pack-ages, or they may be distributed as stand-alone DLLs.In the first case, they would be installedthe same way you install a component or a package.When you ve received a stand-alone DLL,you should add the name of the DLL in the Windows Registry under the key \Software\Borland\Delphi\6.0\Experts.Simply add a new string key under this key, choose a name you like (itdoesn t really matter what it is), and use as text the path and filename of the wizard DLL.Youcan look at the entries already present under the Experts key to see how the path should beentered.Copyright ©2001 SYBEX, Inc., Alameda, CA www.sybex.com2874c01.qxd 7/2/01 2:40 PM Page 47What s Next? 47What s Next?This chapter has presented an overview of the new and more advanced features of the Delphi 6programming environment, including tips and suggestions about some lesser-known featuresthat were already available in previous Delphi versions
[ Pobierz całość w formacie PDF ]