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.

Rob Laveaux send me an email stating that changing parent from
ContainerControl to Window will make it work. Have not tried it either
yet, but that would make sense - if ContainerControl overrides
DrawInto method, it may work differently or not at all (though IMHO
this may be considered a bug.)

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

Reply via email to