all groups > dotnet windows forms designtime > may 2005 >
You're in the

dotnet windows forms designtime

group:

Designer for container control



Designer for container control Michael Powell
5/26/2005 12:00:00 AM
dotnet windows forms designtime: I've created a container control based object that needs a design time
editor. I've created one based on ControlDesigner but there are several
problems:
My control no longer behaves as a container control (it will not allow me to
place objects within it).
The designer allows me to change a point in the control, however, the point
can be outside the control, and PaintAddornements clips to the control's
rectangle.
Finaly, the control needs to have aspects of transparency which work fine at
runtime but HORRIBLE at design time
is there any way to refresh the whole form after a change is made with the
designer?
is there a way to change PaintAddornements to remove the cliping?
and how do i make a designer for container controls?


--
~Mike Powell,
software designer for Ramuseco ltd
www.ramuseco.com

Re: Designer for container control Francisco Padron
5/28/2005 12:00:00 AM
You need to derive your designer from ParentControlDesigner.

ContainerControl has ScrollableControlDesigner as the default designer which
derives from ParentControlDesigne, by deriving your designer from
ControlDesigner you are loosing all this functionality.

--
Francisco Padron
www.chartfx.com


[quoted text, click to view]

AddThis Social Bookmark Button