New UserLib : GadAnim

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

New UserLib : GadAnim

Post by Flype »

Code: Select all

;-------------------------------------------------------------------------------
;
; Name        : GadAnim
; Version     : 1.0
;
; Author      : Flype ( flype@altern.org )
; Date        : 08 may 2004
;
; Purpose     : GadAnim allow the creation of Button and/or Image animated
;
; Compilation : TailBite 1.1 PR 10 and PureBasic 3.90
;
; Commands    : GadAnimButton(GadgetID.l, x.l, y.l, w.l, h.l, ImageID.l, ImageNB.l)
;               GadAnimImage(GadgetID.l, x.l, y.l, ImageID.l, ImageNB.l, Flags.l)
;               GadAnimStart(hWindow.l, TimerID.l, Delay.l)
;               GadAnimRestart()
;               GadAnimPause()
;               GadAnimStop()
;
;-------------------------------------------------------------------------------
GadAnim is available here :

http://www.serveurperso.com/~flype/Pure ... adAnim.zip
Last edited by Flype on Sun May 09, 2004 3:00 am, edited 1 time in total.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Nice work Flype :)
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

thanx polyvector :wink:

i need feedback...
is it ok for you, even on PB 3.91 ?
any flickering problem to report ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

every few seconds i'll catch a glimps of the retrace... but that's true of most animated things....

The only problem I've noticed is that if you set the speed slow... something like:
GadAnimStart(WindowID(), 1, 500)
the gadgets don't draw until the 500ms is up....
maybe you could have it draw once when that command is called?

I'm running 3.91 Beta 1 on WinXP Pro...
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hmmm, i see. i will correct it
thanx
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply