Dear Rooters My system: root source 3.02/03 compiled on LinuxPPC 2000 In my GUI macro I am trying to implement a TGListTree to display the contents of TFiles. Although I try to use code from TRootBrowser, I would appreciate any hints how this could be done best? While studying the code of TRootBrowser I came across a couple of questions: 1, It seems that TBrowser depends on every object¥s function "obj->Browse(fBrowser)". So I would have to substitute for this function? In the new root version you have as source code: TRootBrowser::BrowseObj(TObject *obj) obj->Browse(fBrowser); TObject::Browse(TBrowser *b) TClass::AutoBrowse(this,b); TClass::AutoBrowse(TObject *obj, TBrowser *b) TAutoInspector insp(b); obj->ShowMembers(insp,cbuf); however, TObject has no longer memberfunction ShowMembers(). 2, Mouse events in TGListTree: Double clicking on item always emits first Clicked() and then DoubleClicked(). Is there a reason for this? Is it possible to separate these events, so that I could use these functions for different purposes? Is it possible to add (event->fYRoot << 16) | event->fXRoot) as variable in Clicked() and DoubleClicked()? 3, Scrollbars in TBrowser: TRootIconBox in "Details" view: When TBrowser window is reduced horizontal scrollbar does only appear when ObjHeader("Name") is only partly visible, but not when only ObjHeader("Title") is covered. Is this a bug or a feature? How could this be changed when I want to create my own descendent of TGFileContainer? 4, Items can be displayed in treeview multiple times: Suppose I have a TFile "test.root" containing a folder "test;1" in treeview of TBrowser. Clicking on "test.root" puts "test;1" also in treeview as "test;1". Clicking on "test;1" converts it to "test". Clicking again on "test.root" puts another "test;1" in treeview as "test;1", etc, etc. In this way you put the one item "test;1" as many times in treeview as you want. Is this behaviour intended? Thank you in advance for your help. Best regards Christian ---------------------------------- C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a V.i.e.n.n.a, A.u.s.t.r.i.a
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET