On Dec 17, 2006, at 9:48 AM, David Johnson wrote:
I apologize, I should have mentioned in my post that I am running
RB 5.5 Pro under MacOS X 10.3.9.
My controls window only has an "OLEContainer Control (Windows)".
Is the ContainerControl an addition to RB after version 5.5?
Yes. It's a new feature in 2005+ Pro.
The reason I thought that this was possible was that, in the RB 5.5
Lang. Ref, the Canvas control has a Scroll method that takes an
optional ScrollControls parameter. The LR says, "ScrollControls
indicates whether controls positioned on top of the Canvas control
should be scrolled as well. ScrollControls is True by default."
But, perhaps this applies only to controls built on a canvas "by
hand".
That's the case in 5.5.x. You can copy and paste these items but you
cannot make a Canvas sub=class that also contains controls. That's
what the ContainerControl Class was designed for. You can create this
container and sub-class it at your pleasure.
It's sort of a class that has elements of a window but still acts
like a control.
But, if it is possible to create a sub-class of Canvas with child
controls in RB 5.5 Pro, how do I do it?
Unfortunately the Canvas Class can't do this on its own. You
basically have to build each one individually. You must remember that
putting controls on top of a canvas doesn't put these controls into
the canvas itself. They only have a Parent-Child relationship.
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>