Can the PeriodItemEditor be used with a DBPlanner? If so,
here is what I have done:
procedure "TFPlanning.PeriodItemEditor1BeforeEditShow(Sender: TObject;
APlannerItem: TPlannerItem);
begin
PeriodItemEditor1.Caption := “Edit item from : ”+ APlannerItem.ItemSpanTimeStr;
end;"
When I click on the editor, nothing happens!
Thank you for your reply
Gerard LILLAMAND
Set the caption from the Planner.OnItemStartEdit event.
Example:
procedure TForm1.FormCreate(Sender: TObject);
begin
planner1.DefaultItem.Editor := PeriodItemEditor1;
planner1.AutoInsDel := true;
end;
procedure TForm1.Planner1ItemStartEdit(Sender: TObject; Item: TPlannerItem);
begin
PeriodItemEditor1.Caption := inttostr(random(100));
end;
Thank you for your reply, that's fine