Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Trucos (https://www.clubdelphi.com/foros/forumdisplay.php?f=52)
-   -   Cambiar el puntero del mouse por un archivo .ICO o .ANI (https://www.clubdelphi.com/foros/showthread.php?t=80636)

dec 30-06-2006 23:23:32

Cambiar el puntero del mouse por un archivo .ICO o .ANI
 
Deberás definir una constante global:

Código Delphi [-]
const
  crTambor = 100;

En el FormCreate (o donde te parezca, pero debe ser antes de usarlo por primera vez)

Código Delphi [-]
Screen.Cursors[crTambor] := LoadCursorFromFile('NuevoCursor.ani');

... y cuando te parezca apropiado lo activas:

Código Delphi [-]
Screen.Cursor := crTambor;


La franja horaria es GMT +2. Ahora son las 11:19:30.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi