Lord Satan wrote:
On Thu, 28 Jun 2007 07:10:29 +0800
Павел Ишенин <[EMAIL PROTECTED]> wrote:
Not to do this you can create ico file with empty shape, load it and set
cursor to it:
Screen.Cursors[1] := LoadCursorFromLazarusResource('my_empty_cursor');
Screen.Cursor := 1;
I cannot get it to work. I always get an AV on LoadCursorFromLazarusResource.
Is there anything special about the .ico file I have to create? I tried it with
a 1x1 pixel file created with the Gimp and saved as .ico. Then using lazres to
create a .lrs.
I tried it again with mouse.ico from the lazarus/images directory, again an AV.
I am sure that I am doing something wrong, but I don't know what.
ups, sorry. ofcouce not .ico but .cur file. My fault. They have the same
internal format - thats why I wrote ico.
Please, look at cursors example in lazarus examples.
Best regards,
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives