Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

problem with painting nodes PaintTree with poUnbuffered in options and setMapMode... #1074

Open
johnek123 opened this issue Nov 26, 2021 · 3 comments
Labels
Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.

Comments

@johnek123
Copy link

johnek123 commented Nov 26, 2021

When using mapping mode - nodes draw in incorrect positions.

setMapMode       (image.canvas.handle, MM_ANISOTROPIC);
setWindowExtEx   (image.canvas.handle, 1, 1, nil);
setViewportExtEx (image.canvas.handle, 2, 2, nil);

treeview.paintTree (
                    image.canvas,
                    rect  (0, 0, image.width, 100),
                    point (0, 0),
                    [poGridLines, poUnbuffered],
                    pfDevice
                    );

image
vt.paint.tree.zip

@joachimmarder
Copy link
Contributor

I'm not sure if the painting code of virtual treeview is prepared for other map modes than MM_TEXT. Please attach your sample project as ZIP file.

@johnek123
Copy link
Author

I added a sample file

@joachimmarder
Copy link
Contributor

Sorry, I never worked with poUnbuffered so far and have no idea how to fix this. This all looks like a corner case to me. It is somehow related to #579.

@joachimmarder joachimmarder added Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR. labels Nov 28, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Low Priority Pull Requests Invited There are no current plans to address the issue, but we would be happy if someone supplies a PR.
Projects
None yet
Development

No branches or pull requests

2 participants