Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only