Главная страница
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.014 c
1-90999
fag2000@ok.ru
2002-03-15 13:12
2002.03.28
Как узнать HANDLE окна OLE объекта


6-91021
Sregey
2001-11-22 17:49
2002.03.28
Все та же ошибка 10055 при попытке подключения TClientSocket


4-91099
Ted
2002-01-27 07:38
2002.03.28
Как закрыть все приложения кроме моего?????????


1-90894
s
2002-03-13 18:16
2002.03.28
Окна приложения


1-90856
IgoX
2002-03-16 23:01
2002.03.28
dll функции