Skip navigation.
Home
The QNX Community Portal

View topic - PtGenTree

Page 1 of 1

PtGenTree

PostPosted: Tue Apr 12, 2011 12:28 am
by mario
I can for the life of me figure out how to programaticaly add item to a PtGenTree. All I see is the PtGenTreeItem_t, but how is this related to say adding some text item?

I assume that if I want to add text I must first create a PtLabel and then add it to the Tree ???

And where are code sample when you need them ;-)

Thanks

RE: PtGenTree

PostPosted: Tue Apr 12, 2011 6:05 am
by maschoen
Mario,

I hear your pain. I'll take a look tomorrow after I wake up.

Mitchell

RE: PtGenTree

PostPosted: Tue Apr 12, 2011 1:43 pm
by mario
I'll point out, in the foundry, the lack of documentation. Steve Reid is always very open to suggestions/requests

RE: PtGenTree

PostPosted: Tue Apr 12, 2011 3:55 pm
by maschoen
Mario,

I haven't tried them yet, but I see routines:

PtGenTreeAddAfter()
PtGenTreeAddFirst()

With anyone else I'd say rtfmp. Did I miss something, or don't these work for you?

BTW, the manual makes it sound like PtGenTree is just around as a superclass, not necessarily intended to be used directly.

RE: PtGenTree

PostPosted: Tue Apr 12, 2011 6:44 pm
by mario
I finally found out how to do it, PtTreeAllocItem, that is how you bind text to a PtTreeItem ( or PtGenTree ). phew!