The latest FPC compiler supports .RES resource files and doesn't required a .LRS resource anymore. See
http://wiki.freepascal.org/Lazarus_ResourcesIn MSWindows, I can modify the cursor to a custom cursor from the .RES resource file. This doesn't work in Linux. The cursors simply disappears. Previous topics are referring to .LRS resources. Attached sample program works in MSWindows but not in Linux (FPC 3.0.0, Lazarus 1.6, VMWare LXLE virtual machine)
What is wrong? See attached sample program and code below.
Thanks in advance.
uses
....., LCLintf;
implementation
{$R *.lfm}
{$R hcursors.res} {FOR CURSORS}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
screen.cursors[1]:=loadcursor(hinstance,'cursor_1'); {load cursor from res file}
screen.cursors[2]:=loadcursor(hinstance,'cursor_2'); {load cursor from res file}
form1.cursor:=1;
end;