Wednesday, July 21, 2010

Updates over the past month

For the past month, I've been working on the Control representation panel.  In order to support the selection box drawing routine, you need to override one of two methods.

The first possible option is to override PObjectOgl.GetBoundingBox.  This routine will return the bounding box for an object, and when it returns something legitimate, internal drawing routines will take care of drawing an outline around selected objects.

The second possible option is to override PObjectOgl.DrawSelected.  By default this will use the bounding box returned by GetBoundingBox, but you can override it yourself to do whatever you like.

I've also created PEngine.AddConstructedObject, and this should allow you to add objects dynamically to the objects pane.

No comments: