472,352 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

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:
http://www.ovenfreshweb.com/audio-player-maker.htm
These are the vids:
Buttons : Quickplayer Or Buttons : Windows media player

(By the way : Source written ones :) )
Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim OrigColor As Long
  3. Private Sub Form_Load()
  4.     OrigColor = Command1.BackColor
  5.     End Sub
  6. Private Sub Command1_Click()
  7.       Command1.BackColor = vbRed
  8. End Sub
Sep 16 '07 #1
6 1486
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:
http://www.ovenfreshweb.com/audio-player-maker.htm
These are the vids:
Buttons : Quickplayer Or Buttons : Windows media player

(By the way : Source written ones :) )
Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim OrigColor As Long
  3. Private Sub Form_Load()
  4.     OrigColor = Command1.BackColor
  5.     End Sub
  6. Private Sub Command1_Click()
  7.       Command1.BackColor = vbRed
  8. 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.
Sep 16 '07 #2
Killer42
8,435 Expert 8TB
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.
Sep 17 '07 #3
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...
http://www.morrowland.com/apron/tut_html.php

Anyone gots an idea how to let an image appear slowly?
Sep 17 '07 #4
(Has to be in the same tab or else , you just select somthing on the page )
Sep 17 '07 #5
Killer42
8,435 Expert 8TB
... Anyone gots an idea how to let an image appear slowly?
That's easy! Use a dial-up connection. :)
Sep 17 '07 #6
haha ^o)
the second image flows into the first
Sep 18 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: yoyo | last post by:
Is there anyway to delay a trigger from firing for a few seconds? I have an after insert trigger on table1, which selects information from table2...
20
by: Doug Thews | last post by:
I ran into an interesting re-pain delay after calling the Abort() method on a thread, but it only happens the very first time I call it. Every time...
0
by: khalligan2000 | last post by:
Im developing an application that has a treeview and a panel, clickin on nodes in the treeview will show GUI controls in the panel (Property...
8
by: Jason Shohet | last post by:
Lets say I want a button to execute 10 seconds after I press it, not immediately. Any ideas how to cause that, in a code-behind. IMO its only...
7
by: Anthony | last post by:
Hi, I'm experiencing a delay (of about 1-2 seconds) when I try and select and item in my VB.NET windows menu. The menu item eventually appears...
14
by: Rene Grothmann | last post by:
I have managed to communicate between forms and Java applets. A button press sends the content of the text area to an applet, a second button gets...
2
Griffen25
by: Griffen25 | last post by:
howdy, i'm currently teaching myself VB-6.0 and i'm having some troubles of mine with a simple game of "Pong" hehe My Problem: I've mannaged to...
0
by: bdtmike | last post by:
I'm using VS2005 and creating a VB.Net Winforms app. The app uses a couple of web services. For some reason, when I start the app, there is a 30...
2
by: burtski99 | last post by:
...with a simple problem. I have 2 buttons on my form, button1 and button2. I want the following sequence:- 1) button1 changes colour to red 2)...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.