Re: making tree with custom tree view dynamicaly (c++)
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
YuLo wrote: >i'd like to make a new tab in tabbox with tree widget dynamicaly. > >I think i can insert nessesary xul tags in the DOM document. >But where can i get TreeBoxObject for this tree to assign my custom tree view object(XPCOM c++) to its view property. > > In JavaScript, simply write treeElement.view = theView; In C++, you need to QI your tree element to nsIDOMXULElement, then call GetBoxObject, then QI that to nsITreeBoxObject, then call SetView. -- Warning: May contain traces of nuts.