Solved

Animated Buttons

Posted on 1998-12-07
5
164 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
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

809 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