Hello
Delphi 10 Seattle
In form.OnCreate the following is declared.
DBPlanner1.DefaultItem.HTMLTemplate.Text := '<b><#STARTTIME></b><br><#NOTEFromTS_IOC><br>';
If an item is moved from one location to another on the DBPlanner1, the template can invoked via
procedure TformScheduleSimple.DBPlanner1ItemMove(Sender: TObject; Item: TPlannerItem; FromBegin, FromEnd, FromPos, ToBegin, ToEnd,
ToPos: Integer);
ToPos: Integer);
begin
Item.Update;
Item.Update;
end;
The problem is that if an item is dragged from a PlannerWaitList I have not been able to find an event that allows the Template to be invoked An example of what does not work is given below.
procedure TformScheduleSimple.DBPlanner1DragDropCell(Sender, Source: TObject; X, Y: Integer);
var
tempPlannerItem: TPlannerItem;
begin
var
tempPlannerItem: TPlannerItem;
begin
.......
tempPlannerItem := DBPlanner1.CellToItem(X,Y);
tempPlannerItem.Update;
tempPlannerItem.Update;
.........
end;
Suggestions??
John