Results 1 to 8 of 8

Thread: You know that...?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93
    You know that little moving iconm in your browsers top corner? Well i'm wondering, how would I put one of those in a browser i'm making?
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  2. #2
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    use any animated GIF OCX, or just make it your self, add a timer and a picture box, and then change the picture every 0.5 or 1 second, it is not that hard

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    IE and Netscape both use a bitmap for that moving icon

    you can reproduce that in VB by using the BitBlt API

    Mark
    -------------------

  4. #4
    Guest
    PaintPicture will also do the trick.

  5. #5
    Guest
    yeah, you should use paint picture, there is really no need for bitblt, as this doesnt require that much speed.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    What? How can you say that? "doesn't require that much speed"!
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    Ca
    Posts
    93

    how...

    I am talking about it will move when the page is loading and stop when it's loaded.
    Timbudtwo
    I have no life, only one with computers.

    VB 6.0 Enterprise Edition
    [hr]

  8. #8
    Guest
    Code:
    Private Sub Command1_Click()
    Webbrowser1.Stop
    Timer1.enabled = False 'timer holds your animated gif events
    End Sub
    
    Private Sub WebBrowser1_DownloadBegin()
    Timer1.enabled = True
    label1.caption = "Downloading..."
    End Sub
    
    Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
    Timer1.enabled = False
    Me.caption = webbrowser1.locationName & " - TimbudTwo's Webbrowser"
    Label1.caption = webbrowser1.LocationURL
    Something like that?

    And Mih_Flyer, wouldn't a timeout .5 or .1 make it look like it was changing from pic to pic? It wouldn't give it an easy switching and moving picture. It'd be like Flash...Flash, Not FlashFlash...hope you get what I mean.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width