2
0

ucursors.pas 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // SPDX-License-Identifier: GPL-3.0-only
  2. unit UCursors;
  3. {$mode objfpc}{$H+}
  4. interface
  5. uses
  6. Classes, SysUtils;
  7. var
  8. crCustomColorPicker : integer = 1;
  9. crCustomCrosshair : integer = 2;
  10. crCustomFloodfill : integer = 3;
  11. crCustomRotate : integer = 4;
  12. implementation
  13. uses Graphics, Forms, LResources, Controls, LCLType;
  14. var useCustomCursors: boolean = true;
  15. initialization
  16. {$I tools\cursors\paintcursors.lrs}
  17. if useCustomCursors then
  18. begin
  19. screen.Cursors[crCustomColorPicker] := LoadCursorFromLazarusResource('colorpicker');
  20. screen.Cursors[crCustomCrossHair] := LoadCursorFromLazarusResource('crosshair');
  21. screen.Cursors[crCustomFloodfill] := LoadCursorFromLazarusResource('floodfill');
  22. screen.Cursors[crCustomRotate] := LoadCursorFromLazarusResource('rotate');
  23. end else
  24. begin
  25. crCustomCrossHair := crCross;
  26. crCustomColorPicker := crHandPoint;
  27. crCustomFloodfill := crDefault;
  28. crCustomRotate := crSizeAll;
  29. end;
  30. end.