On Sep 10, 2006, at 2:41 PM, Karen wrote:
Is there a way to set the default size of a RectControl subclass?
What I mean is say I subclass BevelButton to make
MySpecificBevelButton. Is there any for me to set the size that
appears when I drag (or double click) to put an instance of
MySpecificBevelButton in a window (or container control)?
Wouldn't it be the desired size if it was already inside a
ContainerControl that was pre-defined?
If not, maybe for RectControl subclasses, Shared DefaultWidth and
DefaultHeight properties could be added that appear in the property
pane of the project tab? These could control the default sizes for
new instances.
I think that's asking a bit much but you could make a Feature Request
for it. I doubt if it would happen though. For normal subclasses of
controls, it would be a stretch as most people want to define
individual properties for Clones (Control arrays) and the like. The
majority of code, of course, would be identical in most subclasses.
Best,
Terry
_______________________________________________
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>