MouseMove event of a control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I want a border to appear around a shape when the cursor moves over it and i
want no border of the shape when cursor moves out of that area.

i.e.

Private Sub pcb_MouseMove(Button As Integer, Shift As Integer, X As Single,
Y As Single)
pcb.BorderStyle = 1
pcb.BorderWidth = 2
pcb.BorderColor = RGB(255, 0, 0)

End Sub

the above works fine when i move my mouse over the shape, BUT when i movemy
mouse out of it, i want the Border to become transparent i.e.

pcb.BorderStyle=0

How do i do the second part?
 
Hi,
It's usually done using the MouseMove event of the Detail section of the form.
 
If you are dealing with many shapes, something like a map,
then take a look at
www.bennet-tec.com/btproducts/metadraw/WebSamples/MD3Map/md3_map.htm
Here is a US Map - each state is a separate shape
The borders change as you move your mouse over them.
Is this the effect you want?
This was done in IE but can be done the same way in Access.
The sample uses our MetaDraw 3 OCX component.
If this looks like what you are trying to do and you are open
to the use of commercial components, then consider MetaDraw.
You can get further details on the Bennet-Tec web site
www.Bennet-Tec.com

* * Please include a copy of this message with your reply

Jeff Bennett
(e-mail address removed)

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com
=================== ===================
 
Jeff: I can't get that page to work. I downloaded the OCX, but the map box
stays blank.
 
Probably it is an IE settings issue.
Make sure you have IE set to allow ActiveX and VBScript
Does this help ?

- Jeff
 
As far as I can tell through looking at the levels associated with the
Internet under Tools | Internet Options | Security, both ActiveX and
Scripting are enabled. When I go into Tools | Manage Add-ons, your control
shows up as being enabled. No joy, though: all I see is a white box. I only
just installed SP2, so I'm sure many some settings got tweaked when I did
that. Now to find out which one(s)...

It might be worth adding some screenshots to your page showing what settings
are critical in the major browsers...
 
Back
Top