I am in the process of creating a planner application.
However the built in Planner editor is not sufficiant, so i ahev crearted my own custom "Form" for adding new Items.
Question - Can I or how do i add the "TMSFNCPlannerItemEditorRecurrency" option to my custom form?
You can re-use the content panel & initialize the content with a planner item with the following code:
procedure TForm4.FormCreate(Sender: TObject);
var
p: TTMSFNCPlannerItemEditorRecurrencyContentPanel;
begin
TMSFNCPlannerItemEditorRecurrency1.Planner := TMSFNCPlanner1;
p := TMSFNCPlannerItemEditorRecurrency1.CustomContentPanel;
TMSFNCPlannerItemEditorRecurrency1.InitializeCustomContentPanel;
TMSFNCPlannerItemEditorRecurrency1.Panel.Parent := Self;
TMSFNCPlannerItemEditorRecurrency1.ItemToCustomContentPanel(TMSFNCPlanner1.Items[0], TMSFNCPlannerItemEditorRecurrency1.Panel);
end;
Note that the code will now generate a default recurrency editor, but you can change whatever you want with the TTMSFNCPlannerItemEditorRecurrencyContentPanel variable "p"
Finaly got round to looking into this. I am having a small issue of getting the Defauilt Content panel to initilise in my custom Tab - what might i be missing?