[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Animated Gif on VB gif89 ocx

Posted on 2009-04-18
18
Medium Priority
?
2,665 Views
Last Modified: 2013-12-20
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.
0
Comment
Question by:www_blubattery_com
  • 9
  • 9
18 Comments
 
LVL 22

Expert Comment

by:danaseaman
ID: 24175795
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


0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24176927
This is obvious. This is not my question
0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24177000
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.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 22

Expert Comment

by:danaseaman
ID: 24183854
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
0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24183986
I try but page tell
"0 items found to display!"
"No files found. Upload files "
Are you sure of url?
work with vb5?
0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24183995
I confirm initial specifications.
Only VB5 projects.
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24184139
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.


0
 
LVL 22

Expert Comment

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

0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24188110
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?

0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24189088
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


0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24191474
I can compile but image is blank. Have to regsvr32 some files?
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24192996
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

0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24199229
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.
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24199619
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.  
0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24201796
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
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24219499
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


0
 
LVL 1

Author Comment

by:www_blubattery_com
ID: 24219830
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
0
 
LVL 22

Accepted Solution

by:
danaseaman earned 2000 total points
ID: 24219927
Given the fact that Vb6 has been updated with 6 service packs over the years I am not surprised that Vb5 has issues.
I would highly recommend that you switch to Vb6 if that if possible.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month18 days, 17 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question