|
-
Dec 16th, 1999, 05:53 AM
#1
Thread Starter
So Unbanned
I need to have my image to change when my mouse goes over it BUT i need it to go back when you take it off. Mouseover and a timer don't work. Putting it back to default when ever your mouse goes over another object is bad cuz it gets stuck if they quickly scroll over it then onto the background.
lil help?
------------------
DiGiTaIErRoR
-
Dec 16th, 1999, 08:19 AM
#2
Hyperactive Member
Do not change your image, it is best to have two images on the same location, one of them invisible. On the Mouseover event of Image1, make Image2 visible.
I put the images on a frame. On the Mouseover event of the frame, make Image2 invisible again which restores image1.
If you have an array of images and you want to hilight one of them, like the toolbar in Internet Explorer, each time you get the mouse over one of them, do a for-next loop and make all others invisible. This prevents errors due to rapid rodent movements.
-
Dec 16th, 1999, 10:25 AM
#3
Thread Starter
So Unbanned
I was going to use two picturebox's make one invisible other show. BUT you would need to put picturebox1.visible = true picturebox2.visible = false in all the other things cuz I don't want to do all that coding even if I made a sub.... any help?
------------------
DiGiTaIErRoR
-
Dec 16th, 1999, 11:08 AM
#4
Frenzied Member
i use the mousemove command:
(Image1.Mousemove)
Image2.visible = true
(Form1.mousemove)
Image2.Visible = false
The only problem, is that that is pretty slow, so if you have a lot of labels and other images, image2 can get stuck on your sreen until you touch the form.
Steve
-
Dec 16th, 1999, 11:23 PM
#5
Hyperactive Member
I did the same thing one time and what I ended up doing was just surrounding the picture with a blank label, so that you couldn't see it. Then on the mouseover event for the label, all you have to do is program it to set the picture back to it's normal state.
----------------------
Ryan
[email protected]
ICQ# 47799046
[This message has been edited by Gimpster (edited 12-17-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|