Ticket T215897
Visible to All Users

Map Control: The map keeps moving when displaying a Popup

created 10 years ago

Hi

I want to be able to stop the map moving when i click the RMB to bring up a PopupMenu. (see example).
To test, load the exe, and then right click, and then move the mouse outside the popup window, and you can see that the map still moves. How do i stop this behavior?

thanks

Answers approved by DevExpress Support

created 10 years ago

Hi Tony,

To solve this issue, handle the CloseUp and Popup events, and adjust the MapControl.EnableScrolling property:

C#
private void popupMenu1_Popup(object sender, EventArgs e) {     this.map.EnableScrolling = false; } private void popupMenu1_CloseUp(object sender, EventArgs e) {     this.map.EnableScrolling = true; }

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.