-------------- Original message -------------- From: Erne <[EMAIL PROTECTED]>
> >From what I understand you can't subclass a Container Control like you do > any other control, it works more like the way you subclass a window i.e. > > Create a new class (myCC) > Set it's super to ContainerControl > Add your methods, props and whatever > Create a new ContainerControl > Set it's super to myCC > > That's next to useless ... i want to modify/specify the interactions between the component controls by implementing events and creating new events, overriding methods I created on the parent ContainerControl ... Simple Example... I wanted to implement a "Combo Bevel Button" ... like what you see om MS toolbars.. They are essentially two buttons bevel acting together - a large one and small one, as single control The small one usually only shows is a disclosure triangle and usuallu drops a menu or pallet where you select a state (I was also going to suport popup up the dialog as well). Changing the state by makinga selction may change the look of the icon and/or the text of the larger button I wanted to make a base class with methods and events on the container control itself (based on the controls I added - thsi part I can do) from which I could create specific types of reusable buttons (say such as for color for one) by implementing those events (and extending them with new events) and overriding the methods I created in the ContainerControl... That is the type of subclassing of ContainerControl that needs to be supported for it to be Control.... and seens to work when compiled but the IDe has no clue as how to handle them. Of course for a ContanerControl to be a control one should also be able to specify that properties be entered in the properties panes... and taht is cuurently not allowed In short ContainerControls don't behave as controls... Once I create a container control I should be able to subclass it like an editfield or listbox to modify/specify it's functionality though exposed methods and events, though not add or modify the base controls themselves within it . And teh complier seems to support this but the layout editor does not. - Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
