-
Notifications
You must be signed in to change notification settings - Fork 258
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
Button clicks lost if node is being edited #1290
Comments
I cannot confirm this. I just tried this in the File-Open-Dialog of Delphi, both with the treeview and the listview: Selecting an element, pressing F2 and then clicking the Open or Cancel button does nothing. I am on Windows 11. Can you confirm this? |
No, when I using the following code, I get a TreeView on which I can double-click the nodes to start editting the text. This is not how VTV seems to work ... the Button press is ignored until the edit has finished so you have to click twice. Unit1.dfm
Unit1.pas
|
Have you tried in the File-Open-dialog? |
Yes and, as you say, the OK and Cancel clicks are ignored until the edit box is ended. So I guess what I'm asking is which behaviour is "correct" ? |
Delphi 12.2
VTV - current git master
If you are editing a node in the tree and you click away from that edit box onto (say) a standard button, the edit box closes but the button click never occurs.
This is contrary to how the standard Win32 treeview works ... this closes the edit box, applies the new text and then also clicks the button (which is how myself and my colleagues perceive the control should work).
To demonstrate this:-
You will see that the edit box closes but the tree is not cleared.
Somewhere the "click the button" message is being lost when the edit box closes.
The text was updated successfully, but these errors were encountered: