| |

VerySource

 Forgot password?
 Register
Search
View: 752|Reply: 1

A TreeView problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-16 16:00:01
| Show all posts |Read mode
I drawNodeText myself, that is, I draw the background color and string color of the SelectedNode myself, but found a problem, each time a Node is clicked, because I implemented the NodeMouseClick event, and the response takes a while, I must wait for this event to return before drawing SelectedNode's background color and string color, etc., is that there is a delay in drawing after clicking, please ask everyone
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 20:45:01
| Show all posts
It is certain that the self-draw event is triggered after the NodeMouseClick event, because NodeMouseClick changes the performance of the node, and the speed is slow. You can see if the code in the NodeMouseClick event is considered to be optimized, and double buffering should be used
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list