Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ESRI MAP Objects problem
Message
De
05/05/2004 11:22:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
ESRI MAP Objects problem
Divers
Thread ID:
00901215
Message ID:
00901215
Vues:
121
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
Fil
Voir

Click here to load this message in the networking platform