![]() |
|
phGantTimePackage FAQ 10418I am trying to conditionally allow or prevent the moving/resizing of timebars Please note that this article
refers to the phGantTimePackage Jump to article- 2005-12-12 15:12:00 - Email plexityHide Question I am trying to conditionally allow or prevent the moving/resizing of timebars on the calendar based on certain conditions. I have read the helpfile and a KB article on the topic but i still dont understand how to manipulate a time item's move/resize properties. The reply to the KB question reads.... Answer In phGantTimePackage this can be handled with properties on the IphGantRow3. IphGantRow3.TimeItems_CanChangeRow=false So this is on a ROW basis? Cant i have do this down at the timebar level?? Also, i dont understand the naming convention of "IphGantRow3.TimeItems_CanResize". My code to populate the treeview and to draw timebars is shown below. Can you show where and how in my code to allow/prevent a timebar from being moved or resized?? I was hoping to do something like the following but it DOES NOT work: tTime.AllowMove = .t. Answer You are correct that the "Allow" properties are set per row. This is a design limitation (or flaw) to the phGantTimePackage that has been fixed in the GTP.NET. The workaround for phGantTimePackage user to get conditional AllowResizeEast etc is to implement the IphGantX3.OnBeforeCanEditGantTime and in this event evaluate what the correct settings for the properties should be and update them on the row.
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| ? 1999-2006 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |