An NDoc Documented Class Library

DrawCtrl.activateColor Method 

Draws an active marker, how will be highlighted by the HoverColor if the mousepointer moves over it. With the parameter Tag you can set informations to identify the marker in an other context.

public Color activateColor(
   Color value
);

Parameters

value
Color to paint

Return Value

Results the oldcolor

Example

...
protected override void draw(MNDevice device)
    { 
        ctrlMarker(new xyz(4, 4), 2006);
        // if the mouse moves over this marker then it will be highlighted with hovercolor
        ctrlMarker(new xyz(0, 4), 2007);
    }
protected override void MouseDown( System.Windows.Forms.MouseEventArgs e)
    {
    if (CurrentHit!=null)
     switch ((int)CurrentHit.Tag)
     {
        case 2006 :// Mouse is at Marker  4/ 4 is clicked, do something
                    break;
        case 2007 :// Mouse is at Marker  0/ 4 is clicked, do something
                    break;
     }
    }
...

See Also

DrawCtrl Class | Minais.Drawing3d Namespace