F
frank
Good Morning All,
I am working on a CAD application. At the time of this writing I am
currently working on the GraphicsEngine. The structure is as follows:
GraphicsObject (Base Class, Must Inherit)
ShapeObject (Must Inherit)
Derived Classes()
TestObject (Must Inherite)
Derived Classes()
Derived Classes()
GraphicsObject does not inherit form anyone.
I am working with VB.NET 2005 enterprise edition.
My problem is as such: I need to handle mouse events. I can easly
enough fire them using an outside class and performing a HitTest on the
region. However I would like the indivudal objects to handle there own
events to some extend.
E.G:
If a rectangle is draw on the screen. The rectangle is a derived class
of the shapeObject. When the mouse is clicked inside its bounds the
border should be "Selected." As I said I know how to do this from
another class, but I can't figure out how to link the mouse/ keyboard
events to the base class.
Thank You,
Frank
I am working on a CAD application. At the time of this writing I am
currently working on the GraphicsEngine. The structure is as follows:
GraphicsObject (Base Class, Must Inherit)
ShapeObject (Must Inherit)
Derived Classes()
TestObject (Must Inherite)
Derived Classes()
Derived Classes()
GraphicsObject does not inherit form anyone.
I am working with VB.NET 2005 enterprise edition.
My problem is as such: I need to handle mouse events. I can easly
enough fire them using an outside class and performing a HitTest on the
region. However I would like the indivudal objects to handle there own
events to some extend.
E.G:
If a rectangle is draw on the screen. The rectangle is a derived class
of the shapeObject. When the mouse is clicked inside its bounds the
border should be "Selected." As I said I know how to do this from
another class, but I can't figure out how to link the mouse/ keyboard
events to the base class.
Thank You,
Frank