Hi James, you might want to use a TGCanvas with a TGTableLayout (or TGMatrixLayout). Then in the table you can put any kind of composite frame containing text and icons or whatever. Cheers, Fons. James Peachey wrote: > > Hello, > > I'm working on a Root GUI in which I would like to display > composite objects (i.e. derived from TGCompositeFrame) in > a listbox-style display. I started by looking at the TGListBox > family of routines. However, there are two design issues which > I'm not sure how to address: > > 1) I might also like a horizontal scrollbar, but TGListBox > has just a vertical. Would I be better off working with a > TGCanvas and adding listbox functionality, or would it be > easier to derive from TGListBox and add a scrollbar? > > 2) If I do derive from TGListBox it's not obvious how to > generalize the approach taken by TGTextLBEntry for > displaying text, because its base class, TGLBEntry, derives > from TGFrame, and not TGCompositeFrame. How can I derive > something from TGLBEntry which contains multiple frames? > > I'd be grateful for any advice you can give about how to > approach this. > > Thanks, > James -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET