CreateItem and start Editor?

Hello TMS-Team!

Is it possible to create programatically a plannerItem and start immediately
an ItemEditor (with this new item)?

Of course creating an plannerItem is no problem. But how to start the editor?
item.edit does not work ...

Do you have an advice?

Yes, just call PlannerItem.Edit


  plit: TPlannerItem;
  plit := planner1.CreateItem;
  plit.itembegin := 4;
  plit.itemend := 6;
  plit.itempos := 0;

Ah, thank you!

I've got an exception "an unvisble window can not get the focus".
Now its clear: my planner resides on an other page of an AdvOfficePager
and the new item was created on an other page.