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 _
public void ctrlMarker(
   xy Position,
   object Tag


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


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
        case 2007 :// Mouse is at Marker  0/ 4 is clicked, do something

See Also

DrawCtrl Class | Drawing3d Namespace | DrawCtrl.ctrlMarker Overload List