On Sep 10, 2006, at 6:55 PM, Terry Ford 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?


Does that not lose somethings ,,, for example setting and seeing the caption on the Window visually ?

In any case not everybody has RB Pro.



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.


What you are missing is it helps a lot in doing consistent layout... but I don't need to request it... in the forum that we already have the feature...

You can set the defaults for the properties of a class using the Property List Behavior dialog!

try it ... Subclass any RectContol the in the project pane right click on it and set the width and height defaults... then drag it onto the window... The instance honors them and of course you can still resize it (which was my original intent BTW)




- 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>

Reply via email to