Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.03.28;
Скачать: CL | DM;

Вниз

Cursor   Найти похожие ветки 

 
Dimitriy   (2002-03-15 18:17) [0]

Очень хочу для своей программы сделать курсор, а т.к. в Delphi мне до аса далеко, то может сможет кто-то подсказать, как использовать курсор, заранее подготовленный в Имаж Эдиторе?


 
Nikolay ©   (2002-03-15 19:24) [1]

В своей программе находите строку
{$R *.DFM}
и под ней добавляете:
{$R MyRes.res}

пример из хелпа:

This example shows how to add custom cursors to an application. It assumes that a custom cursor with the name NewCursor has been added to the resources (.RC file) of the application. The following code makes this cursor available to the application via the constant crMyCursor, and sets it as the global cursor to the application.

const
crMyCursor = 5;

procedure TForm1.FormCreate(Sender: TObject);
begin
Screen.Cursors[crMyCursor] := LoadCursor(HInstance, "NEWCURSOR");
Cursor := crMyCursor;
end;



Страницы: 1 вся ветка

Текущий архив: 2002.03.28;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.015 c
1-90884
stop8
2002-03-13 19:16
2002.03.28
SOS... по QReport 3.0.....


6-91032
Beginer
2001-11-12 08:43
2002.03.28
Подключить сетевой диск...


1-90969
SecondGray
2002-03-15 05:53
2002.03.28
Delphi 5&Win98 против Delphi5&Win2K


1-90917
alex1111
2002-03-18 15:43
2002.03.28
Unicode


3-90778
ExxP
2002-03-04 03:53
2002.03.28
Отмена удаления записи после события