We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The point passed to GetActiveTabIndex should be the client coordinate. Thus the corresponding code in TabControlExtra.OnDragOver should be:
var dragPoint = new Point(drgevent.X, drgevent.Y); var tabPoint = this.PointToScreen(Point.Empty); dragPoint.Offset(-tabPoint.X, -tabPoint.Y); if (this.GetActiveTab(dragPoint) == dragTab) { return; } int insertPoint = this.GetActiveIndex(dragPoint); if (insertPoint < 0) return;
The text was updated successfully, but these errors were encountered:
Thank you, well spotted.
But is there a reason not to simply use:
var mousePosition = this.PointToClient(new Point(drgevent.X, drgevent.Y)); if (this.GetActiveTab(mousePosition) == dragTab) { return; } int insertPoint = this.GetActiveIndex(mousePosition); if (insertPoint < 0) return;
Sorry, something went wrong.
Oh, thank you for replying. Long time no program with WinForm :)
You are right.
I just wanted to say that I have some other concerns about the current drag-and-drop implementation.
I'll probably release a new version soon just to fix the immediate issue here, and then have a more considered go at it.
No branches or pull requests
The point passed to GetActiveTabIndex should be the client coordinate.
Thus the corresponding code in TabControlExtra.OnDragOver should be:
The text was updated successfully, but these errors were encountered: