I have a dialog with a TTreeView control and an OK and Cancel button. The buttons have the Default and Canel properties set to true, and ModalResult has been set correctly.
The user can edit the headers of the tree nodes using the built-in controls.
If the user hit or clicked while editing the node tree , the dialog will disappear instead of just canceling or accepting the editing under the node heading.
In the case of an escape function, for example, I expect that one day I will be able to escape into the escape code to edit the header, and then delete it a second time to cancel the dialog.
What is the best way to handle this situation?
TMemo has the WantReturns property to handle this, but I don't see anything for TTreeView.
Jamie source
share