Delay for buttons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ikkeugh
    New Member
    • Sep 2007
    • 9

    Delay for buttons

    Hello , i've got a question : How do you make those mouse over buttons in Visual Basic 6.0 with a delay ?
    I want them to look like this .

    The buttons come a few (small)seconds later so they have a delay .
    When Its in down state , it shouldn't do a thing untill the mouse is released.
    So does someone know how to do the delay thingy ?
    You can download the program and see it for yourself , but I made a vid , so it would be easier .
    (in .mov and .avi )
    This is the program:

    These are the vids:
    Buttons : Quickplayer Or Buttons : Windows media player

    (By the way : Source written ones :) )
    Code:
    Dim OrigColor As Long
    Private Sub Form_Load()
        OrigColor = Command1.BackColor
        End Sub
    Private Sub Command1_Click()
          Command1.BackColor = vbRed
    End Sub
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    Originally posted by ikkeugh
    Hello , i've got a question : How do you make those mouse over buttons in Visual Basic 6.0 with a delay ?
    I want them to look like this .

    The buttons come a few (small)seconds later so they have a delay .
    When Its in down state , it shouldn't do a thing untill the mouse is released.
    So does someone know how to do the delay thingy ?
    You can download the program and see it for yourself , but I made a vid , so it would be easier .
    (in .mov and .avi )
    This is the program:

    These are the vids:
    Buttons : Quickplayer Or Buttons : Windows media player

    (By the way : Source written ones :) )
    Code:
    Dim OrigColor As Long
    Private Sub Form_Load()
        OrigColor = Command1.BackColor
        End Sub
    Private Sub Command1_Click()
          Command1.BackColor = vbRed
    End Sub
    I had to do this once. Pain in the rump it was.

    You should code the mouse enter, mouse exit events. and, if supported, mouse hover events of the buttons.

    the problem with this is speed. if the user moves their mouse too quickly, the events (either mouse enter or mouse exit) may not trip.

    in such a case, you should code complimentary events in other controls to make sure your buttons are not 'stuck' when mouse-overed. Example: the forms mouse move events should make sure the buttons are not colored as if the mouse were over them.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      I'm not sure of the look you're after (can't look at the links, as my work system blocks everything). But have a look at this thread which was about adding "XP-Style orange buttons" to a VB6 program. I have a feeling it covers something like what you're looking for.

      Comment

      • ikkeugh
        New Member
        • Sep 2007
        • 9

        #4
        I found out that it wasn't a delay , but it was just slowly showing the picture .
        for an exemple , look at this site , everything comes up slowlyyyyyyyyy. ..


        Anyone gots an idea how to let an image appear slowly?

        Comment

        • ikkeugh
          New Member
          • Sep 2007
          • 9

          #5
          (Has to be in the same tab or else , you just select somthing on the page )

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by ikkeugh
            ... Anyone gots an idea how to let an image appear slowly?
            That's easy! Use a dial-up connection. :)

            Comment

            • ikkeugh
              New Member
              • Sep 2007
              • 9

              #7
              haha ^o)
              the second image flows into the first

              Comment

              Working...