Hi all,
can somebody tell me where kalonline cursors stored? [ the on in normal condition and the one when we drag on a monster (little sword)]
or just get an image of them from somewhere, anyway i couldnt
the second thing is, im triing to load a custom cursor into delphi, but i fail all the time :(
i already made a cursor in image editor, and i have a cursor named as cursor1.cur.... and i tired to add with this code:
const
cursor1 = 15;
CurFile = 'cursor1.cur';
var
CurFilePath: string;
begin
CurFilePath := ExtractFileDir(Application.ExeName) + '\' + CurFile;
Screen.Cursors:=LoadCursor(C:\cursor\cursor1.cur);
LoadCursorFromFile(PChar(CurFilePath));
Screen.Cursor := cursor1;
end;
end.
im sure my code it wrong, mby on even more places, sincei know nothing about delphi programmint so pls dont flame
i added a screenshot about the problem too.
btw im triing to add the code on this way: File -> New -> Application --> then i click on for1 twince to see code and delete all and pase my code
thanks in advance,
Mukso
EDIT:
i think i correct the code
{$R cursor1.res}
const
cursor1 = 15;
CurFile = 'cursor1.cur';
var
CurFilePath: string;
begin
CurFilePath := ExtractFileDir(Application.ExeName) + '\' + CurFile;
Screen.Cursors[CURSOR1]:=LoadCursor(HInstance,'C:\cursor\cursor1');
LoadCursorFromFile(PChar(CurFilePath));
Screen.Cursor := cursor1;
end.
becouse it let's me though to next problem -,-
but it's almost done i think... check 2nd attachment




Reply With Quote






