- •Using the Object Repository: Overview
- •Sharing items within a project
- •-Adding items to the Object Repository
- •Sharing objects in a team environment
- •Using an Object Repository item in a project
- •Copying an item
- •Inheriting an item
- •Using project templates
- •Modifying shared items
- •Specifying a default project, new form, and main form
- •Developing the application user interface: Overview
- •Controlling application behavior
- •Working at the application level
- •Using the main form
- •Hiding the main form
- •Adding forms
- •Managing layout
- •Using forms
- •Creating modeless forms such as windows
- •Creating a form instance using a local variable
- •Passing additional arguments to forms
- •Retrieving data from forms
- •Creating and using component templates
- •Working with frames
- •Merging menus
- •Assigning a speed button's glyph
- •Common controls and xp themes
- •1. Answer the questions:
- •8.1 Text viewing controls
- •8.2 Specialized input controls
- •8.3 Track bars
- •Cool bars (vcl only)
- •Combo boxes
- •Tree views
- •Date-time pickers and month calendars
- •Scroll boxes
- •Tab controls
Merging menus
For MDI applications, such as the text editor sample application, and for OLE client applications, your application's main menu needs to be able to receive menu items either from another form or from the OLE server object. This is often called merging menus. Note that OLE technology is limited to Windows applications only and is not available for use in cross-platform programming.
Assigning a speed button's glyph
Each speed button needs a graphic image called a glyph to indicate to the user what the button does. If you supply the speed button only one image, the button manipulates that image to indicate whether the button is pressed, unpressed, selected, or disabled. You can also supply separate, specific images for each state if you prefer.
Common controls and xp themes
Microsoft has forked Windows common controls into two separate versions. Version 5 is available on all Windows versions from Windows 95 or later; it displays controls using a "3D chiseled" look. Version 6 became available with Windows XP. Under version 6, controls are rendered by a theme engine which matches the current Windows XP theme. If the user changes the theme, version 6 common controls will match the new theme automatically. You don't need to recompile the application.
Tasks
1. Answer the questions:
What does the Object Repository provide?
Name the steps for adding an item to the Object Repository.'
Tell about copying and inheriting an item.
How can you create a new project from a template?
What must you do to specify a default project?
Tell about the classes that form the backbone of all applications.
What can you say about using and hiding the main form?
How can you avoid "Circular reference" error?
What are modal and modeless forms?
j) Name the steps to pass additional arguments to a form, k) Tell about the difference between a frame and a component. I) What do actions bands provide? m) Give the definition of glyph.
2. Translate into English:а) объектный архив; общие элементы; модули данных; групповое окружение; совместно используемый архив; существующий элемент; точная копия; отраженный в копии; получить новый класс; предварительно сконструированные проекты; шаблон первичного проекта; нетронутый изменениями; изменение общедоступных элементов; распространять изменения; текущий проект; проект по умолчанию; пустая форма; интерфейс пользователя приложения;
б) основа всех приложений; сохранять формы и модули данных; поддержание системно-специфической информации; разрешение экрана; глобальная переменная; фоновый режим программы; прятание основной программы; порядок создания формы; предотвращать появление основной формы; связывающие формы.ошибка. циклической зависимости; во время выполнения программы; модальные и немодальные формы; передавать дополнительные параметры форме; восстановление данных из форм; размещение компонентов на форме; установка свойств; механизм монопольного использования; для синхронизма свойств компонентов.вложены внутри форм; структура внедрена; компонент обычно вызывается; групповой символ; передвигаться через директории; поддерживать "размещение"; событие "стреляет"; неактивное приложение; установка полос действия; приспособленный к форме; меню объединения; назначение глифа; кнопка быстрого действия; графический образ; распространять общие средства управления.