I tried to get this to work for so long and simply could not get it.
I want to have a Pttee which display icons in the first and 4th (last)
column. Now the ones in the first column are easy, as they are simply the
image for the Pttreeitem itself.
I’m typing this away from my dev system right now, so I’m missing some code,
but here is the just of what I do to add images for the 4th column.
I set up an image list (ptimage* array of the images I want)
I assign this array to a columnattributes strucutre for the specified
column
I set the 4th column to be of type NO_STRING
I set a IMGFUN that the pttree should call to ask which index into the
array the column item should use.
Now, the imgfun I choose isn’t even beeing called, so I’m lost.
I tried to get this to work for so long and simply could not get it.
I want to have a Pttee which display icons in the first and 4th (last)
column. Now the ones in the first column are easy, as they are simply the
image for the Pttreeitem itself.
I’m typing this away from my dev system right now, so I’m missing some code,
but here is the just of what I do to add images for the 4th column.
I set up an image list (ptimage* array of the images I want)
I assign this array to a columnattributes strucutre for the specified
column
I set the 4th column to be of type NO_STRING
I set a IMGFUN that the pttree should call to ask which index into the
array the column item should use.
Yes, that’s how it should be done, but your description is way too vague
to give anybody any insight into what you’re doing wrong.
May I suggest that you compare your code with the samples in the docs
again, and if you don’t find any significant differences, post the
relevant fragments of your code here. Or, even better, in the Photon
newsgroup.
Yamin <> y2bismil@uwaterloo.ca> > wrote:
I tried to get this to work for so long and simply could not get it.
I want to have a Pttee which display icons in the first and 4th (last)
column. Now the ones in the first column are easy, as they are simply
the
image for the Pttreeitem itself.
I’m typing this away from my dev system right now, so I’m missing some
code,
but here is the just of what I do to add images for the 4th column.
I set up an image list (ptimage* array of the images I want)
I assign this array to a columnattributes strucutre for the
specified
column
I set the 4th column to be of type NO_STRING
I set a IMGFUN that the pttree should call to ask which index into
the
array the column item should use.
Yes, that’s how it should be done, but your description is way too vague
to give anybody any insight into what you’re doing wrong.
May I suggest that you compare your code with the samples in the docs
again, and if you don’t find any significant differences, post the
relevant fragments of your code here. Or, even better, in the Photon
newsgroup.