![]() |
|
phGantTimePackage FAQ 11149Is there a way to find if the time item is changing a row in the OnValueChangedGantTime event.
Please note that this article
refers to the phGantTimePackage Jump to article- 2008-03-02 10:59:00 - Email plexityHide Question
My question is - Is there a way to find if the time item is changing a row in the OnValueChangedGantTime event. The thing that I am doing cannot be done in or after the OnGantTimeChangeRow event. I tried using the theGant.RowList.FindRowFromY(lngY).TreeNode.GridRowIndex but it does not work for some cases.
Answer
Use the theGant.RowList.FindRowFromY(IphGantX3.MousePositionGantArea.Y) if the returned row is different than the row currently owning the time item (theDataEntity_GantTime.Row) this is a move...
You can check this in the OnHintInfo event and put the information in a membervariable that you later read in the OnValueChangedGantTime event.
Check the argument theDataEntity!=null, and also check IphGantX3.GetMouseMoveMode==mmMove. If both these are true, the user is moving a time item... Use something like this then: _ThisIsARowMove=theGant.RowList.FindRowFromY(IphGantX3.MousePositionGantArea.Y)<>theDataEntity_GantTime.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 |