I made a calendar component for Delphi. Now I want to add a visual effect to it while changing months (like Windows Vista standard calendar).
Now I want to create an invisible duplicate of the component and draw that one on the canvas to use it for the visual effect. I tried BitBlt function but it does not work because the control is invisible. Is there any way to draw an invisible control on a canvas?
Call the control’s
PaintTomethod. That’s for descendants ofTWinControl.I don’t see an analogous method for
TGraphicControldescendants, but since those always require aTWinControlparent, you could just callPaintToon the parent control to get an image of theTGraphicControlchild.