Форум: "Основная";
Текущий архив: 2002.10.28;
Скачать: [xml.tar.bz2];
ВнизКомпонент Найти похожие ветки
← →
arc (2002-10-18 16:17) [0]Уважаемые мастера.
Создал свой компонент, установил в палитру, как бы теперь у нему добавить иконку. Иконку уже нарисовал.
← →
Андрей Прокофьев (2002-10-18 16:23) [1]Ее надо в ресурсный файл включать
← →
Андрей Прокофьев (2002-10-18 16:24) [2]Every component needs a bitmap to represent the component on the Component palette. If you don’t specify your own bitmap, Delphi uses a default bitmap.
Because the palette bitmaps are needed only at design time, you don’t compile them into the component’s compilation unit. Instead, you supply them in a Windows resource file with the same name as the unit, but with the extension .DCR (dynamic component resource). You can create this resource file using the Image editor in Delphi. Each bitmap should be 24 pixels square.
For each component you want to install, supply a palette bitmap file, and within each palette bitmap file, supply a bitmap for each component you register. The bitmap image has the same name as the component. Keep the palette bitmap file in the same directory with the compiled files, so Delphi can find the bitmaps when it installs the components on the Component palette.
For example, if you create a component named TMyControl in a unit named ToolBox, you need to create a resource file called TOOLBOX.DCR that contains a bitmap called TMYCONTROL. The resource names are not case-sensitive, but by convention they are usually in uppercase letters.
Страницы: 1 вся ветка
Форум: "Основная";
Текущий архив: 2002.10.28;
Скачать: [xml.tar.bz2];
Память: 0.44 MB
Время: 0.009 c