Y
yeeler
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Timer1Timer(Sender: TObject);
var
AppIcon : TIcon;
IconName : String;
begin
// we're loading icons from the EXE file - they're in the resource file and
// compiled in.
IconName := format('EYES%d',[ AnimateSequence ] );
AppIcon := TIcon.Create;
AppIcon.Handle := LoadIcon( HInstance ,pchar( format('ICON_%d',[ AnimateSequence ] )) );
TrayIcon1.Icon := AppIcon;
AppIcon.Free;
AnimateSequence := AnimateSequence + 1;
if AnimateSequence > 13 then
AnimateSequence := 1;
end;
var
AppIcon : TIcon;
IconName : String;
begin
// we're loading icons from the EXE file - they're in the resource file and
// compiled in.
IconName := format('EYES%d',[ AnimateSequence ] );
AppIcon := TIcon.Create;
AppIcon.Handle := LoadIcon( HInstance ,pchar( format('ICON_%d',[ AnimateSequence ] )) );
TrayIcon1.Icon := AppIcon;
AppIcon.Free;
AnimateSequence := AnimateSequence + 1;
if AnimateSequence > 13 then
AnimateSequence := 1;
end;