Skip navigation.
Home
The QNX Community Portal

View topic - PtGenTree

PtGenTree

Isn't the name clear?

PtGenTree

Postby mario » Tue Apr 12, 2011 12:28 am

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
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: PtGenTree

Postby maschoen » Tue Apr 12, 2011 6:05 am

Mario,

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

Mitchell
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

RE: PtGenTree

Postby mario » Tue Apr 12, 2011 1:43 pm

I'll point out, in the foundry, the lack of documentation. Steve Reid is always very open to suggestions/requests
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: PtGenTree

Postby maschoen » Tue Apr 12, 2011 3:55 pm

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.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

RE: PtGenTree

Postby mario » Tue Apr 12, 2011 6:44 pm

I finally found out how to do it, PtTreeAllocItem, that is how you bind text to a PtTreeItem ( or PtGenTree ). phew!
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron