![]() |
|
phGantTimePackage FAQ 10505newactivity.GridRowIndex is -1 Please note that this article
refers to the phGantTimePackage Jump to article- 2006-03-27 20:51:00 - Email plexityHide Question I'm using the COM component and need help working with row heights and labels on a time object. I'm using TimeItemsTextSetEx to display the text above the time item, but I'm having trouble determining how to resize the row height. Here's the code I'm using based on the GanttTest sample that installed with phGantt: Private Sub LoadTreeItemsOwnedBy(activity As IphDataEntity_Tree2, ownerid As Integer) Dim newactivity As IphDataEntity_Tree2 Dim aRS As Recordset Dim selectstat As String Dim y As Long y = newactivity.GridRowIndex The problem is that y always evaluates to -1. How do I resize the rows? Thanks. Answer Not entirily sure why the y = newactivity.GridRowIndex is -1 in this case. Could be a couple of things... First; ary using the grid Gantt.UseGrid=true? If not the old tree is used and then no grid nodes will exist -> Set Gantt.UseGrid=true. Anyway, you can also control GridRowHeights by the defining a IphGridLayoutPropX, set its MinHeight property and assign it to at least one cell in the row (IphGantX3.SetGridCellLayoutPropIndex), and your row will get that row height (only works for UseGrid=true)
|
"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 |