473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1525
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 and table3. Obviously it cannot fire unless the...
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 afterward, there is no delay. I've got a...
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 Sheets, Buttons, Labels, etc). I am drawing most of the...
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 server side code, I don't think javascript needs to...
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 and the program carries on as normal. But I cannot...
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 some text from the applet and puts it into the...
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 bind A & Z to up and down respectivly, but my...
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 second delay when VB invokes its first web service....
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) wait 2 seconds 3) button1 changes back to gray...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.