-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paint into device context via PrintTo or WM_PRINT #632
Comments
Strange, it worked for me. Demo project: |
May I ask why you want to do that?
This must be related to the fact that |
I also noticed that, I guess the viewport is shifted here, or the client area is defined differently. |
I have the same problem as originally reported by Deeem2031. It is apparent any time a VST is PaintTo a bitmap canvas or even if it is on a form and you use GetFormImage to get the form's image onto a canvas. I have an idea that the problem is caused by the fact that the VST ClientRect does not include the vst.Header area. |
Hello, i'm trying to use the virtual-treeview and paint a copy of it (and other controls) into a panel.
To accomplish this i used the TWinControl.PaintTo-routine which works well with other controls but the virtual-treeview is missing the header when using PaintTo.
I did some research but couldn't figure out why it is missing. Besides that I tried using WM_PRINT, which seems to work better as it does paint the header but kinda messes with the border.
So both ways aren't perfect.
I uploaded a delphi 10.1 project to demonstrate the problem on my personal webspace (as github seems to refuse it for no apparent reason...): VirtualTreeCopy.zip
The text was updated successfully, but these errors were encountered: