Dwane,
Hi. If the form hasn't been shown for the first time, the VCL does not
create the window of TWinControl components. There is no need to - because
they will never get focus until made visible. Because of this, they do not
have a canvas and hence do not respond to PaintTo, etc. Workaround: display
the form (to "hide" it, move it off the screen, eg. set the Left property to
say -5000.)
Hope this helps.
Dennis.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Dwane Van Der Sluis
> Sent: Thursday, 7 October 1999 11:42
> To: Multiple recipients of list delphi
> Subject: [DUG]: TButtonControl and GetFormImage on a form that is not
> showing.
>
>
>
>
>
> I am trying the capture the image of a form for
> passing to
> an imaging/archiving system without showing the form.
>
> Using GetFormImage does not capture any decendents of
> TButtonControl (Radio buttons, and checkboxes) if the form is
> not showing.
> TWinControl.PaintTo seems to have similar problems.
>
> Has anyone else had these problems, or found away around
> them?
>
>
> Thanks in advance
>
> Dwane van der Sluis
>
>
>
>
> --------------------------------------------------------------
> -------------
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz