TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Steve Gerrard
date: 2004-12-18 07:35:00
subject: Re: Shape Control Questio

"Jody"  wrote in message
news:JZEwd.28392$%p1.1853884{at}news20.bellglobal.com...
| (vb6)
| I have a form with an image of a country map.
| I want to put little red filled-in 'shapes' on the map to indicate
capital
| cities or cities of importance, so that events can happen on mouse
over and
| also when the click the red dot.
|
| However, it looks like the 'shape' control doesn't have a code section
to it
| like command buttons and images do.
| (when i double click it during design, it takes me to the form code,
instead
| of it's own code).
|
| Does this mean i will have to make my own control?
| I thought of using Image control for each of the dots but transparency
| issues are a pain.
|
| Thanks!
| jody
|

Although a user control may be the best, two other possibilities are:

1. Use labels. They will be little squares instead of dots, but you can
place them easily, and they have mousemove and click events. You can
also set a different mouse pointer for them.

2. Draw the dots yourself on a picturebox, using Circle. You'd have to
keep track of where they are, and keep track of the mouse location using
the picturebox mousemove event, so you can respond appropriately to the
picturebox mouseclick event.
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 12/18/04 7:35:00 AM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270 5030/786
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.