fabpuddu2

AfterItemDraw on GlobeControl

Discussion created by fabpuddu2 on Oct 9, 2012
Hi at all,

I'm trying to capture the event 'AfterItemDraw' on 'GlobeControl' object, I implemented the following code:

Private m_EventsAfterDraw3D As ESRI.ArcGIS.GlobeCore.IActiveViewEvents_AfterItemDrawEventHandler
m_EventsAfterDraw3D = New ESRI.ArcGIS.GlobeCore.IActiveViewEvents_AfterItemDrawEventHandler(AddressOf OnAfterItemDraw)
AddHandler CType(m_globe, ESRI.ArcGIS.GlobeCore.IActiveViewEvents_Event).AfterItemDraw, m_EventsAfterDraw3D 

but it does not work, I have to set the VerboseEvents property, object IViewManager, to TRUE as for MapControl object ? 

                Dim pViewManager As IViewManager = Nothing
                pViewManager = ??????                                      <<========= ????????
                pViewManager.VerboseEvents = True

how do I set pViewManager = ??????

thanks at all

fabrizio

Outcomes