On Sep 28, 2006, at 4:12 AM, Peter Bozek wrote:
I created a ContainerControl named MyContainer with several objects. When I put it into window, it works fine. I tried to put into window a Canvas with following paint method 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. I would like to use this technique to draw the same objects many time on a page (like label printing.) Does anybody know what I am doing wrong?
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? Best regards, Jack _______________________________________________ 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>