On 9/29/06, CV <[EMAIL PROTECTED]> wrote:
> dim aContainer a MyContainer
>
> aContainer = New MyContainer
> aContainer.Initialize
> aContainer.Show // this line does not seem to have any effect on
> aContainer.DrawInto (g,0,0)
>
> but nothing is drawn. It seems that Paint method of objects in
> Container is not called at all.
Do you want to embed a ContainerControl on a canvas or window during
runtime? If so, check out the EmbedWithin command. That would be the
runtime equivalent of "put it into window" as you mention above.
Or is your objective something else?
Yes, I would like to draw the container to window many times. I could
create many containers and embed them in a window, but it seemed to me
that using one container and drawing it into the Window would be
easier. As Container is a child of Window and support DrawInto, this
should work - I wanted to know if I am doing something wrong or there
is some problem with Drawinto.
What I did not tested is to create a Window that contains just a
container and call DrawInto method of that window. Seems superfluous
to me, but it may work, if Container overrides Drawinto method.
--
Peter Bozek
_______________________________________________
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>