Dynamically creating rectangles at runtime

L

Lord Kelvan

Ok fun question I would like to know how to do this. I have created
an application to record assets for our organisation. I have recorded
the x and y using a map (picture of our floor plan) in a form. I am
now wanting in that for with the picture of the floor plan to be able
to create a rectangle for each asset using its x and y coordinates.

So far I have found this

mapcontrol = CreateControl("FrmAssetMap", acRectangle, acDetail,
"pgHuttLV1", "", assetrst!Assetx, assetrst!Assety, 141, 141)’

and this would be near perfect if it worked at runtime.

I cannot use the visible on off method as I don’t know how many assets
there may be nor a idea of the maximum assets there may be at any
point of time.

Is there a method that I could use to draw these assets on the map for
each page control? (There are four page controls ie four maps)

I would like whatever the marker is to be
a specific colour
on a specific tab page
a specific size
at a specific top and left point

It is not critical if I am able to hide and show the markers
dynamically but it would be nice

Thanks in advance

Regards
Kelvan
 
L

Lord Kelvan

yes i found the line event then realised with was for reports only and
then kicked myself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top