Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.013 c
3-90758
Ptr
2002-02-27 14:52
2002.03.28
MasterSource... Кто подскажет в чем проблема?


3-90759
TOLTEC
2002-03-01 17:44
2002.03.28
номер записи


4-91115
Stormick
2002-01-28 23:22
2002.03.28
Мастера проблема (опять HOOK), вернее DLL


1-90933
Сержжж
2002-03-14 11:27
2002.03.28
Патч к Delphi5 для работы в XP


3-90770
Snake
2002-03-02 09:17
2002.03.28
В BDE администраторе на что влияет свойство LOCAL SHARE?




   Наверх