Forum > Packages and Libraries

Visual PlanIt

(1/1)

Nicola Gorlandi:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---    mvActiveEvent.Changed := true;    DataStore.PostEvents;    if IsNewEvent and Assigned(FOnAddEvent) then      FOnAddEvent(self, mvActiveEvent);// added on modifyEvent   if not IsNewEvent and Assigned(FOnModifyEvent) then      FOnModifyEvent(self, mvActiveEvent);      

wp:
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:
Many thanks, it sound good.

Nicole:
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

Navigation

[0] Message Index

Go to full version