On Sep 29, 2006, at 8:53 AM, Peter Bozek wrote:

On 9/29/06, CV <[EMAIL PROTECTED]> wrote:

So you are just drawing; you want images of controls, not functioning
controls? OK...


Yes, exactly that, i need to draw content to graphics object only.


If that is the case then just draw your ContainerControl into a
Picture object and DrawPict the picture where you want it. From a
pushbutton your code would look more like this:

   dim p as picture = NewPicture
(ContainerControl11.width,ContainerControl11.height,32)
   dim g as Graphics = p.Graphics
   ContainerControl11.DrawInto p.Graphics, 0, 0
   self.Canvas1.Graphics.DrawPicture p, 0, 0


Your code differs from mine only in you first draw to picture and then
picture to Canvas, while I attempted to draw directly to canvas. I can
try this, but it would be strange if this makes a difference.

The code I posted works on my machine. Just drag a ContainerControl containing some controls onto a Window, so that you have ContainerControl11, and run the code from a pushbutton on the window. If you want transparency then do: p.Transparent = 1.

I don't know what you mean when you say ContainerControl overrides DrawInto. DrawInto works directly from a ContainerControl.


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>

Reply via email to