Recent

Author Topic: Visual PlanIt  (Read 834 times)

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Visual PlanIt
« on: June 12, 2022, 01:31:14 pm »
Hi all,
It would be great to have an event even for Modify and delete event. At the moment we have only for the add for all views the show events (monthview, weekview, dayview)

What is your opinion about it ?

I mean something llike what is in code below.

Code: Pascal  [Select][+][-]
  1.     mvActiveEvent.Changed := true;
  2.     DataStore.PostEvents;
  3.     if IsNewEvent and Assigned(FOnAddEvent) then
  4.       FOnAddEvent(self, mvActiveEvent);
  5. // added on modifyEvent
  6.    if not IsNewEvent and Assigned(FOnModifyEvent) then
  7.       FOnModifyEvent(self, mvActiveEvent);    
  8.  
  9.  

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Visual PlanIt
« Reply #1 on: June 12, 2022, 06:19:09 pm »
Added an OnModifyEvent to DayView, WeekView and MonthView. I did not add an OnDeleteEvent because I am afraid that it will be confusing: Basically I would expect it to occur after deletion, but on the other hand, it should carry the event to be deleted with it, and this means that it must fire before deletion. If you really need delete notification by an event you could also hook into the events of the dataset.

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Re: Visual PlanIt
« Reply #2 on: June 18, 2022, 06:30:20 am »
Many thanks, it sound good.

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: Visual PlanIt
« Reply #3 on: August 04, 2022, 04:19:29 pm »
For this posting I searched for days.
I add the crucial key words here, case others have the same problem :
tvPlanit
onDelete Event
delete an event

 

TinyPortal © 2005-2018