Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
ESRI MAP Objects problem
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement