The BeforeClick event only seems to fire for the map area itself and not in
the legend area. Is there any way to trap these clicks or to hide the
- Joshua B. Helm
Also, You cannot create your own popup meny on right-click.
"Joshua B. Helm" <jh...@millbrookinc.com> wrote in message
Private Sub MPC1_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean)
If Button = 2 Then PopupMenu mnuTest1
where mnuTest1 is your own menu. This example is for MP2k2.
Yes, you can hide the legend through the PaneState property, but that also takes away your overview map. To get around this, I
would add two instances of the MPC to the form. If the user clicks on the smaller overview MPC, it would update the larger MPC.
Tedious, but it accomplishes exactly what you want...
"Joshua B. Helm" <jh...@millbrookinc.com> wrote in message news:#$fMCSgnBHA.1516@tkmsftngp07...
Great answers. Thanks for helping the community.
This posting is provided “AS IS” with no warranties, and confers no rights.
Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit