Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading Animated Cursors ( *.ani files )

12 views
Skip to first unread message

Bob

unread,
Jun 2, 2008, 2:25:30 AM6/2/08
to
I use rxShell to view Tray Icons.
There is an option to use Animated files in Design time.
I need to be able to set this up at run time does anyone know how to do
this.


Rob Kennedy

unread,
Jun 6, 2008, 1:34:36 AM6/6/08
to
Bob wrote:
> I use rxShell to view Tray Icons.

I think most people just use the taskbar for that.

> There is an option to use Animated files in Design time.
> I need to be able to set this up at run time does anyone know how to do
> this.

What steps do you take to set it up at design time? Which of those steps
are you having trouble doing at run time?

I've only just seen the class declarations, and I don't feel like
reading the definitions. I see the TRxTrayIcon component has a few
properties, including Animated: Boolean, Icons: TIconList, and Interval:
Word.

If I had to guess, I'd say that you're supposed to create one icon for
each frame of the animation you want -- since a single icon cannot
actually be animated in Windows -- and put those icons in the Icons list
property. Then you set Interval to the amount of time the component
should wait before registering each frame with the shell. Finally, set
the Animated property to start the cycling.

--
Rob

Bob

unread,
Jun 17, 2008, 1:04:07 AM6/17/08
to
Very funny, I meant I use rxShell to show Tray Icons.

The component at design time allows you to a ".ani" file
to load the icons.

However I cannot see any reference to these type files or loading them
anywhere.

Kind Regards,

Robert.
"Rob Kennedy" <m...@privacy.net> wrote in message
news:4848cc6a$1...@newsgroups.borland.com...

Rob Kennedy

unread,
Jun 17, 2008, 2:09:20 AM6/17/08
to
Bob wrote:
> Very funny, I meant I use rxShell to show Tray Icons.
>
> The component at design time allows you to a ".ani" file
> to load the icons.
>
> However I cannot see any reference to these type files or loading them
> anywhere.

I suppose there's a special property editor for the Icons property.
That's of type TIconList. Look in the rxIcoLEdit unit and you'll see the
property editor. The function named LoadAniFile looks promising. It
instantiates a class named TAnimatedCursorImage, loads the file, and
assigns the object to the TIconList object.

--
Rob

0 new messages