Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ESRI MAP Objects problem
Message
From
05/05/2004 11:39:01
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
05/05/2004 11:22:11
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00901215
Message ID:
00901221
Views:
61
Edmundo,

I use MAPOBJECTS 2.1 with VFP8SP1 under Win2000Pro and it works fine for me.

How do you know it doesn't fire that event? Have you tired to "set step on" in that event?

Mike


>I work with ESRI MAPOBJECTS to include map display in one of our products. While MAPOBJECTS it´s primarily used with other programming languages like visual basic, i use in Visual Foxpro. My program works fine including: map opening and displaying, map zooming, searching, printing, relating with sql tables, etc. The only problem i have it´s related to the AFTERLAYERDRAW event.
>
>The problem can be stablished as follows:
>
>1. User programs only can draw in one of the following events: BEFORELAYERDRAW, AFTERLAYERDRAW, BEFORETRACKINGLAYERDRAW & AFTERTRACKINGLAYERDRAW.
>
>2. Normally in certain operations such as spatial search you select some shapes or entities in the event map.mousedown using map.trackrectangle and layer.searchshape(). To fire the AFTERTRACKINGLAYERDRAW event you use the following instruction:
>
>thisform.map.trackinglayer.refresh ( .t. )
>
>3. In the event AFTERTRACKINGLAYERDRAW you include instructions to show what entities you selected, may be showing in another color. like in the following code:
>
>private simbolo as MapObjects2.symbol
>simbolo = createobject ( "Mapobjects2.symbol" )
>simbolo.color = xcolor
>if sstyle = moTransparentFill then
> simbolo.outlinecolor = anothercolor
>endif
>simbolo.style = xstyle
>* draw selected entities founded in recset
>thisform.map.drawshape ( recset, simbolo )
>
>4. In Visual Basic the code like this runs ok, but in Visual Foxpro the event
>AFTERTRACKINGLAYERDRAW not fires.
>
>I'm try different methods to fire the event but none functions. I try to use:
>
>. _vfp.autoyield
>. doevents
>. raiseevent() in VFP8
>
>I appreciate any help
>
>Sincerely:
>
>Edmundo Ríos Miranda
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform