I have tried and found no way beyond cutting and pasting the controls.

For me, this is up there on the frustration level with not being able  
to refactor a control instance into a class. I've often customised a  
control instance to a point and then thought, "I could use another  
one of these ona  different window", but there is no way to turn a  
control instance into a reusable class. (at least not without dumping  
the window to XML, stripping the bits you don't want, and changing a  
few things... It's easier to cut and paste the event code)

- Tom

On 13/03/2007, at 4:28 AM, Lars Jensen wrote:

> I've got a Window with a bunch of controls in it, and I'd like to
> re-use this control arrangement. I thought "OK, I'll just change its
> Super from Window to ContainerControl."
>
> Using RB2007r1, this worked about halfway: the layout editor and code
> editor for the new ContainerControl subclass seem to work as expected.
> But when I added this subclass to a window, I don't get Top and Left
> properties so it always hugs the top left corner of the containing
> window. There is other odd behavior in the code editor of the
> containing window as well.
>
> Is this supposed to work? Is there an official easy way to get a bunch
> of code from a Window to a ContainerControl without a lot of cut and
> paste?
>
> lj
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to