How to set the editState of an ItemEditor?


I use an own Editor to edit Items from the DBPlanner. I used it like in the Demos, but the EditState is not set. Is it possible to do this manually?

Another Question: I create an Item by double clicking in the Planner:

newItem := planner.CreateItem;

If I now click mrCancel in the Editor the Item is created in the database (it should be deleted). Is there a way to handle this?

Best regards ... 
  1. Editing for an item is started by calling PlannerItem.Edit.

    2) Implement the OnEditDone event and check the modalresult:
    Sample code: