-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug]: KryptonTreeView can throw exception on changing palette via KryptonManager #777
Comments
@Smurf-IV Any ideas? |
Well, I made a stupid workaround and its basically works: By the way, for some reasons KryptonTreeView trying to collapse all the nodes when changing a palette, and when its done, then no exception is thrown. |
I have not seen this in the demo code |
Where did you place this code ? |
In "KryptonTreeView.cs" at "protected override void WndProc(ref Message m)". |
Made a test - put KryptonManager to a form. The same result. |
Ok. "Bad" code: "Good" code: |
Notes:
Now should only fire when:
|
…creation finished, or when recreating due to palette changes) #777
Describe the bug
Exception can be thrown in KryptonTreeView by method WndProc, when KryptonTreeView is visible (has expanded nodes) and palette changed.
To Reproduce
protected override void WndProc(ref Message m) {
...
default:
base.WndProc(ref m);
break;
...
}
Expected behavior
Exception shouldn't be thrown.
The text was updated successfully, but these errors were encountered: