[ROOT] How does one write a generalized listbox?

From: James Peachey (peachey@bigband.gsfc.nasa.gov)
Date: Thu Aug 16 2001 - 17:36:01 MEST


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



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET