Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

246
Vistas
Can I show ToolTip for the nodes I am painting on a panel?

I have a mesh system for a MMO and it's uses A* to find paths. Occasionally it fails because I have nodes that are badly placed. To fix this, I made a mesh visualiser. It works OKish - I can see that some nodes are badly placed. But I can't see which nodes.

Here is an example image showing a path.

Here is my code to show the nodes:

    foreach (var node in FormMap.Nodes)
    {

        var x1 = (node.Point.X * sideX);
        var y1 = (node.Point.Y * sideY);

        var x = x1 - nodeWidth / 2;
        var y = y1 - nodeWidth / 2;

        var brs = Brushes.Black;
        //if (node.Visited)
        //    brs = Brushes.Red;
        if (node == FormMap.StartNode)
            brs = Brushes.DarkOrange;
        if (node == FormMap.EndNode)
            brs = Brushes.Green;
        g.FillEllipse(brs, (float)x, (float)y, nodeWidth, nodeWidth);

I know I can redo this and make thousands of small buttons and add events for them but that seems overkill.

Is there any way I can add tooltips to the nodes I am painting on the panel?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda