Skip to content

Simplify code for changing the checkstate #805

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

Closed
joachimmarder opened this issue Jun 11, 2018 · 2 comments
Closed

Simplify code for changing the checkstate #805

joachimmarder opened this issue Jun 11, 2018 · 2 comments
Assignees
Milestone

Comments

@joachimmarder
Copy link
Contributor

joachimmarder commented Jun 11, 2018

The code when a node is checked is overly complex, because Virtual Treeview supports pending check state changes both for keyboard and for mouse. This causes problems like #790 and #285 or makes feature request like #745 unnecessary complex to implements. Neither Windows Explorer nor the Windows ListView common control has or supports these pending check states.

I don't see a significant benefit in them and vote for removing them and making the behavior similar to Windows Explorer and the ListView common control.

Proposed changes:

  • Remove tskeyCheckPending and tsMouseCheckPending
  • Remove FCheckNode and FPendingCheckState
  • Apply check state change on key / mouse button down
@joachimmarder joachimmarder self-assigned this Jun 11, 2018
@joachimmarder joachimmarder added the Open for Discussion There are several possibilites to address the issue and anyone is invited for comments. label Jun 11, 2018
@joachimmarder joachimmarder added this to the V7.1 milestone Jun 11, 2018
@pyscripter
Copy link
Contributor

+1

1 similar comment
@sanjayssk
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants