animated icon in status bar of form?

  • Thread starter Thread starter Flashster
  • Start date Start date
F

Flashster

How do I put a custom animated icon on the status bar of a form? I have an
animated icon file called icon.ani, and I've tried getting
'statusbar1.Animate' to work with no success. Can someone give me some
pointers please?



Thanks,



Flashster
 
Flashster said:
How do I put a custom animated icon on the status bar of a form? I have an
animated icon file called icon.ani, and I've tried getting
'statusbar1.Animate' to work with no success.

What's 'statusbar1.Animate'? The 'StatusBar' class doesn't have an
'Animate' method.
 
Sorry you're right again. I got confused there.

So how do I go about adding an animated icon - it allows .ico files to be
placed in a panel but not.avi or .ani?

Do I override the drawing routing for the status panel?
 
Flashster said:
So how do I go about adding an animated icon - it allows .ico files to be
placed in a panel but not.avi or .ani?

You could use a timer control to change the icon periodically.
 
Thanks Herfried. The user the timer method was quite simple and worked a
treat - thank you.

I now need to change the colour of my status bar from the control color it
seems to default to. My form uses a custom color and so I need it to match.
How would I do this - would I override the 'ondraw' routine, then create
appropriate brushes?
 
Can I just clarify - you are talking about using a panel control (rather
than a status panel) here?
 
Flashster said:
Can I just clarify - you are talking about using a panel control (rather
than a status panel) here?

No, the statusbar control can display status bar panels. However, I believe
that the method demonstrated in the referenced article cannot be used to
change the color of the complete control.
 
Ah, so it won't help me then as I want to change the status bar to look like
the form (not just the panels).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top