Drawing3d documented Class Library

DrawCtrl.ctrlMarker(xy, Object) Method

Draws an active marker, which will be highlighted by the HoverColor if the mousepcursor passes it. With the parameter Tag you can set informations to identify the marker in an other context.

[Visual Basic]
Public Overloads Sub ctrlMarker( _
   ByVal Position As xy, _
   ByVal Tag As Object _
)
[C#]
public void ctrlMarker(
   xy Position,
   object Tag
);

Parameters

Position
Position, where the marker will be drawn
Tag
Information to identify the marker

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 | Drawing3d Namespace | DrawCtrl.ctrlMarker Overload List