-
Notifications
You must be signed in to change notification settings - Fork 736
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
Docking is not working properly #640
Comments
The cause of this bug is this call to
Because of that the To fix it one needs to comment
This works because when the mouse is moved over a panel on a screen (B) different than the screen (A) on which the dock-indicator was initiated by a mouse left-button-down, Note1: This fix works and has been tested on a winforms application with an app.manifest that defines
Note2: In the app.manifest context described in Note1, when creating a new
|
@lextm @psmacchia do you know if this issue fixed? I have the same problem with my application if my screen is scaled to 125%. The docking points are displayed incorrectly, but the mouse position is correct (somwhere in the middle as expected). See pictures below. Edit: Short update, the issue happens only if multiple monitors are connected to the computer, from which at least one monitor is not in 100% scale. If single monitor is used it is working correctly, even in 125% scale.Incorrect positioning of the docking points: Mouse position is correctly calculated (somewhere in the middle as expected): |
@EmanuelFeru this issue was never fixed, see this issue. I found that the Krypton Toolkit works very well for Windows Forms docking with display scaling above 100%, I'd recommend it. |
@nsdrussell thanks for the quick answer. I found that the issue happens only if multiple monitors are connected to the computer, from which at least one monitor is not in 100% scale. If single monitor is used it is working correctly, even in 125% scale. What is Krypton Toolkit? Sorry first time I hear about it. Is it also a docking system? Yes, I need it for WinForms. |
@EmanuelFeru It is a C# library to be used with Windows Forms. One of the components is a good docking system. Have a look at this for examples of docking with it. |
Wow, I just tryied it. That works very well... why didn't I find this 3 months ago. Now everything is coupled to dockpanelsuite. It took me a lot of effort to save and restore the docking system created by the user. In krypton this looks much more intuitive with persistence. Not to mention the tab system in Krypton looks so much better, because the default tabControl in Winforms is so bad, no customization what so ever. |
We've found the following problem:
Imagine that you have a laptop and a second monitor. The windows (10) has the "Scale and Layout" setting. Usually this setting for laptop monitor has 125% and 100% for second monitor. Run the app on one monitor and then move it to the second one. Then use "Drag & Drop" to try to dock any panel in a different place. You will find that it cannot be done. Dockpanelsuite calculates coordinates incorrectly.
ps: It was not easy to figure out why the problem is happening. You can easy to reproduce on multiple monitors. Just set a different scale for each monitor.
The text was updated successfully, but these errors were encountered: