IonicWind Software

IWBasic => GUI Central => Topic started by: pistol350 on April 14, 2008, 05:08:13 AM

Title: image animation in GUI client area
Post by: pistol350 on April 14, 2008, 05:08:13 AM
Sorry if the title of my subject is not very clear, not very explicit.

well, my purpose is to display an animation (rather bitmap animation) in the client area of my GUI application, WINDOW or DIALOG

I think that GDI use can be very useful, but i don't know where to start as i don't know how to implement animation using only API.
( this is not really a big deal as using google can surely bring fair results. )

By the way, the first idea that comes to my mind, as it seems to be the one i can easily and quickly write, is to create a screen as a child of my parent window/dialog and create the animation here using 2D commands

BUT, there might be a better solution, so, any suggestions ?

thanks.
Title: Re: image animation in GUI client area
Post by: Ionic Wind Support Team on April 14, 2008, 07:40:23 AM
I don't have an example but look into the animation control, it comes with Windows.  Someone here may have created one using ControlEx.

Paul.

Title: Re: image animation in GUI client area
Post by: pistol350 on April 14, 2008, 09:45:02 AM
Hi Paul!

Do you mean Animation control as the work done by Bevets (R.I.P) for Ibasic pro ?

an example is attached below.
Title: Re: image animation in GUI client area
Post by: LarryMc on April 14, 2008, 11:13:03 AM
Yes, Bevets animation control is it.

It plays AVIs (which are a series of bitmaps).

Larry
Title: Re: image animation in GUI client area
Post by: Ionic Wind Support Team on April 14, 2008, 12:14:09 PM
The animation control is a common control, Bevets just wrapped it.

You can create the control with the ControlEx function.

You could also open a browser window, without a caption , and show an animated .gif as well.

Paul.
Title: Re: image animation in GUI client area
Post by: LarryMc on April 14, 2008, 12:47:15 PM
Quote from: Paul Turley on April 14, 2008, 12:14:09 PM
You can create the control with the ControlEx function.
That's what I'm in the process of doing in my Window/Dialog Designer.

Larry
Title: Re: image animation in GUI client area
Post by: pistol350 on April 14, 2008, 03:18:07 PM
Thank you for all the infos.

Quote from: Paul Turley on April 14, 2008, 12:14:09 PM
...
You could also open a browser window, without a caption , and show an animated .gif as well.
...
Paul.

I know that solution and have sample codes of it,.
However, i may explore another way of having the same results using a single bitmap file that i will animate myself.

Thanks again for your help.