Jump to content


janszpilewski's Content

There have been 1 items by janszpilewski (Search limited from 24-April 23)


By content type

See this member's

Sort by                Order  

#18595 Problem with ioEndEditOnUnfocus

Posted by janszpilewski on 12 August 2016 - 02:01 PM in NextInspector v6 Component

Hello,

 

I am on Delphi XE5 and use TNextInspector6 6.0.15. I noticed that if ioEndEditOnUnfocus is set, procedure TNxCustomInspector6.EndEdit()  is called twice in a reentering way when another row is selected.

 

First time from TNxCustomInspector6.SetSelectedNode() and the statement:

 

FInplaceEdit.Parent := nil;

 

invokes a chain of handlers that finally calls TNxCustomInspector6.DoExit() which invokes colliding, reentering EndEdit() and causes a crash.

 

To deal with it I added a guard FEndingEdition to block reentering EndEdit(). Maybe this collision can be avoided in a more structured way? 

 

This problem can be easily reproduced with i.e. Events Demo.