Solved

Animated Buttons

Posted on 1998-12-07
5
168 Views
Last Modified: 2010-05-03
Can anyone out there suggest and easy way to do the following (eg and a vb control for doing it):
Make a button (or icon) that when you hold your mouse over it changes (eg "pops out") and when you click it changes on the when the mouse button goes down and changes again when the mouse button goes up. Its hard to do this with only one click event.
0
Comment
Question by:Jhunt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:JiaH
ID: 1448673
How this is what you want. Set the command button's style to 1, and set the picture, dowpicture and disablepicture to the picture you want. You can change the picture and any time when you needed.
0
 
LVL 1

Author Comment

by:Jhunt
ID: 1448674
This is not quite what I wanted. I do not want any button in the background. I wanted to use this for animation type program where you see a "Map" and then you move your mouse around and when you move over an object eg. a house it "pops up" and when you click on the down strock it "pops down" and then when the mouse is let up it goes back to normal before following through to the form associated with the house.
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1448675
Try the hot track sample at the Microsoft site.

http://premium.microsoft.com/vbasic/browse.asp

0
 

Accepted Solution

by:
TomKid2004 earned 100 total points
ID: 1448676
To make this animated button, VB comes with several events including MouseUp, MouseDown, MouseOver and of course, Click.  It would also help to have an ImageList control for ease of use.  Then all you need to do is set the picture for the button every time one of the events is triggered like this:

Private Sub MouseOver
     Button.Picture = IL1.ListImages(1).Picture
End Sub

That should solve your problem.
0
 
LVL 2

Expert Comment

by:JiaH
ID: 1448677
Is the answer same as my??????
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month7 days, 15 hours left to enroll

617 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