Drawing3d documented Class Library

ActiveCtrl Class

The ActiveCtrl inherits from DrawCtrl. It holds properties and methods to implement interactive manipulations of graphical datas.
With the Mouse- and Keyevents you have an instrument to handle actions of an user. By a click you get information about the tag, which is set as parameter to these methods.

protected override void draw(MNDevice device)
        ctrlMarker(new xyz(4, 4, 0), 2006);
        // draws a marker at position (4 / 4/ 0)
        // if the mouse moves over this marker, it will be highlighted with 
        ctrlMarker(new xyz(0, 4, 0), 2007);
        ctrlMarker(new xyz(0, 0, 0), 2008);

protected override void MouseMove( System.Windows.Forms.MouseEventArgs e)
    if (CurrentHit!=null)
     switch ((int)CurrentHit.Tag)
        case 2006 :// Mouse is at Marker  4/ 4/ 0 
        case 2007 :// Mouse is at Marker  0/ 4/ 0 
        case 2008 :// Mouse is at Marker  0/ 0/ 0 

For a list of all members of this type, see ActiveCtrl Members .


[Visual Basic]
<Serializable> _
<ToolboxItem(ToolboxItemType:=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName:="System.Drawing.Design.ToolboxItem, System.Drawing, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<DefaultMember(MemberName:="Item")> _
Public Class ActiveCtrl
    Inherits DrawCtrl
    Implements IEvents
[ToolboxItem(ToolboxItemType=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName="System.Drawing.Design.ToolboxItem, System.Drawing, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class ActiveCtrl : DrawCtrl, IEvents

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Namespace: Drawing3d

Assembly: Drawing3d (in Drawing3d.dll)

See Also

ActiveCtrl Members | Drawing3d Namespace