Re: making tree with custom tree view dynamicaly (c++)
YuLo <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
воскресенье, 25 ноября 2012 г., 14:42:46 UTC+4 пользователь Neil написал: > 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. Neil, thank you very much for your great help! It works!! )) _______________________________________________ dev-tech-xul mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xul