Link to home
Start Free TrialLog in
Avatar of www_blubattery_com
www_blubattery_com

asked on

Animated Gif on VB gif89 ocx

Animated Gif on VB gif89 ocx

I need display an animated gif (i.e. http://www.infrarossi.it/image2.gif ) in a VB5 form.
I have already done it using Gif89.dll but it doesn't support stretch property.
Pratically, if I resize the picture, only form is resized, but image doesn't follow it.
How to resolve it?
Please, I can't use commercial OCX as anigif26.ocx or lavolpe.ocx anigif.ocx.
Only free soluctions.
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

LaVolpe Animated Image Control [26 Jan 09] is free, has stretch property, and comes with source code.
Tested with your sample http://www.infrarossi.it/image2.gif
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=68040&lngWId=1


Avatar of www_blubattery_com
www_blubattery_com

ASKER

This is obvious. This is not my question
The correct replay is a little project done in VB5 or 6, vhith a resizable window, and image2.gif resized with window and continue yo be animated.
As explained: no lavolpe or ocx, but complete free solution, working really.
Try this. Added resize control with drag handles. ucAniGIF is bound to resize control.
ucAniGIF can load local GIF using LoadAnimatedGIF_File or from URL using LoadAnimatedGIF_Remote.
Note that there are NO Ocx dependencies because the controls(ctl) are added directly to the project.

http://www.mediafire.com/?sharekey=5e87de9b8e52c75c90a82c7bb0fad7ade04e75f6e8ebb871
I try but page tell
"0 items found to display!"
"No files found. Upload files "
Are you sure of url?
work with vb5?
I confirm initial specifications.
Only VB5 projects.
Confirmed link and downloaded Zip OK here.
Try this link http://www.mediafire.com/download.php?zwwyzltonzy 
No reason it shouldn't work on Vb5 but I cannot test here since am using Vb6.


You may need to modify the vbp file in notepad to load in Vb5:
http://www.vb-helper.com/vb6tovb5.htm 

I've tried.
VB5 get an error
Method or data member not found
on line:
Private Function ManageTimers(ByVal StartTimer As Boolean, DelayMode As Boolean) As Boolean
...

   ____>error                  c_tmrOwner = UserControl.ContainerHwnd



how to compile it?

Downloaded Vb5CCE and found what was causing the problem in ucAniGif.
Fixed but there is flicker on Vb5 that was not present with Vb6.

http://www.mediafire.com/?ndoykzjzeuz


I can compile but image is blank. Have to regsvr32 some files?
In Form_Load set ucAniGIF(0).LoadAnimatedGIF_File to location of Gif on your machine.



Private Sub Form_Load()
 
    Command2.ToolTipText = "Target URL is http://www.animation-station.com/shared/coollinks.gif"
    
    'ucAniGIF(0).LoadAnimatedGIF_Remote  "http://www.infrarossi.it/image2.gif"
    ucAniGIF(0).LoadAnimatedGIF_File "C:\Users\dseaman\Pictures\image2.gif"
    Set UserControl11.BoundControl = ucAniGIF(0)
End Sub

Open in new window

Ok , it work (with flicker) in debug mode.
I hope that exe compiled, doesn't flickes, but I  have many compilation errors if I try to generate .exe file.
Vb5CCE doesn't allow me to compile Exe so I can't track down the errors.
I could compile this to Vb6 OCX but you said No Ocx.  
Excuse me, but I'm really novice about.
I can use a ocx, but have to be really free of license pending.
If you compile for me ocx, it is? In this case I can test ocx in vb5?

If yes, please make it without extra buttons. At end, I like use it in same mode as picture control, with only these properties:
- Image_filename
- width
- heigth
- top
- left
- stretch (yes/not)
- stop/start
- visible (yes/not)

so, if you compile to ocx the vb6 version (vhithout flicker) I can use it on vb5? If yes I can (every license free) use it.

regards
Anna
ucAniGIF compiled as Vb6 OCX (requires only msvbvm60.dll which all machines Xp and later have pre-installed).
No flicker. No license required.
Register with Regsvr32.exe or just add controls to project as ucAniGIF(0) and ucAniGIF(1).

http://www.mediafire.com/?o2z1mmwg2nd


Sorry,
If i run your compiled exe I haven't flicker.
If I run project from VB5 or compile exe file in vb5 (http://www.geocities.com/pautasso/prjGIFViewer.zip
  ----> ucAniGIF(0).LoadAnimatedGIF_File "D:\image2.gif") flicker is present.

In any case, if you havent' t any way, I pay 500 point for your good consulence.
Regards
Anna
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial