
VB4-32bit query - MOUSEOVER ?
I do that a lot in multimedia programs. What I do is to place a code in
MouseMove event of the control with a flag that loads the picture in the
image control when the mouse is in it. It looks like this:
Form MouseMove
if bLoad = False
Picture.picture = LoadPicture(<name of BMP when NOT passing
over>)
bLoad = TRUE
endif
end
Picture MouseMouse
if bLoad = TRUE then
Picture.picture = LoadPicture(<name of BMP when passing over>)
bLoad = FALSE
endif
end
You can, as Jim said, use the index propertie to control an array of
pictures. The most important is to use any flag that controls the right
loading of images in the picture, and to create a way to assure the
Form.MouseMove event, as sometimes, when moving the mouse very fast, it
doesn't happen and the picture control will remain with the image of the
mouse move event.
Yours,
Mauricio Fiss.
Quote:
> Chaps,
> VB4 does not have a MOUSEOVER event, at least as far as I can tell it
> doesnt. What I want is to change the picture in an image control when
> the
> mouse moves over it, then back to its original picture when the mouse
> leaves. I know I can do this if a mouse button is pressed, however
> thats NOT
> what I am after - just a mouse, wandering around the screen with no
> buttons
> down, with images changing as the mouse moves over the image controls
> - any
> thoughts ?
> Rob.
> http://www.stonecold.co.uk
--
-= Mauricio Fiss =-
Mister CD-ROM & Raven Multimedia
___________________________________
Tel. : (011) 744-4155
web : http://www.ravenbrasil.com