Tooltip bug

Apr 27, 2009 at 2:11 PM
Hi Radioman,

I´m new to your component and I have to say "Thank you!".

I report a bug in OnPaint(PaintEventArgs e). When the the Tooltip pops up, other markers might be on top of it (as they later rendered).
You might change the code in

if(MarkersEnabled && !(Form.ModifierKeys == Keys.Control))
      {
        foreach(GMapMarker m in Markers)
        {
          if(m.Visible && region.Contains(m.LocalPosition.X, m.LocalPosition.Y))
          {
            m.OnRender(e.Graphics);

    //        if(m.IsMouseOver && !string.IsNullOrEmpty(m.ToolTipText))
            {
      //        DrawToolTip(e.Graphics, m, m.LocalPosition.X, m.LocalPosition.Y);
            }            
          }
        }
        foreach (GMapMarker m in Markers)
        {
            if (m.Visible && region.Contains(m.LocalPosition.X, m.LocalPosition.Y))
            {       
                if (m.IsMouseOver && !string.IsNullOrEmpty(m.ToolTipText))
                {
                    DrawToolTip(e.Graphics, m, m.LocalPosition.X, m.LocalPosition.Y);
                }
            }
        }

Keep up the good work,
Frank
Coordinator
Apr 27, 2009 at 6:16 PM
fixed, thx!