Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Painting controls (and their child controls) to a separate TCanva s

1 view
Skip to first unread message

Paul Jackson

unread,
Jun 4, 1999, 3:00:00 AM6/4/99
to
I am attempting to paint the contents of an INVISIBLE control (Visible =
False) to the canvas of another control using:

MyWinControl.PaintWindow(Canvas.Handle);

And this works fine, but does not paint the child controls, I have
already tried:

MyWinControl.PaintControls(Canvas.Handle, nil);

but this does not paint all the child components, and missed some out
(it also does not recurse down all TWincontrols painting their
children). Simply recursing through all controls using PaintWindows is
not possible, as all the controls that will be used will not always
descend from TWinControl (tspeedbuttons timages).

My question is this:
Does anyone know of a way of painting ALL controls contained within
another control?

Thanks for any help you can give
Jacko
Home: mailto:ja...@mandrill.globalnet.co.uk


0 new messages