Re: [ROOT] Scrolling a list

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Jun 02 2003 - 18:55:00 MEST


It might work. Did you try it for your case? Let me know.

-- Fons


On Thu, 2003-05-29 at 19:54, cstrato wrote:
> Dear Fons
> 
> I did not study the source code carefully, but would  it be sufficient
> to add in TGListView::Layout() the following?
> if (fViewMode == kLVDetails)
> ...
>    fHScrollbar->RaiseWindow();
> ...
>    fHScrollBar->SetRange(..)
> 
> Or is this too simple?
> 
> Best regards
> Christian
> 
> 
> 
> Fons Rademakers wrote:
> 
> >Hi Christian,
> >
> >  not supported at the moment but it should not be difficult to support
> >it in the TGListView widget in list mode (to get a horizontal
> >scrollbar).
> >
> >Cheers, Fons.
> >
> >
> >On Wed, 2003-05-28 at 20:52, cstrato wrote:
> >  
> >
> >>Dear Valeri
> >>
> >>Thank you for this reminder. I know that Qt could solve the problem,
> >>since KDE and all of its applications are based on Qt.
> >>Sorrowly, this does not solve my current problem.
> >>
> >>Best regards
> >>Christian
> >>
> >>
> >>Faine, Valeri wrote:
> >>
> >>    
> >>
> >>>Hello Christian,
> >>>Yes, I know you have no time to switch to Qt-edition :-)
> >>>
> >>>Anyway my 2 cents (I am not ROOT Gui expert to help you directly)
> >>>
> >>>Have a look:
> >>>QListView is derived from QScrollView 
> >>>
> >>>So it should be no problem:
> >>>http://doc.trolltech.com/3.1/qlistview.html
> >>>http://doc.trolltech.com/3.1/qscrollview.html
> >>>
> >>>           Hope this helps, Valeri
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>-----Original Message-----
> >>>>From: owner-roottalk@pcroot.cern.ch
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>[mailto:owner-roottalk@pcroot.cern.ch]
> >>> 
> >>>
> >>>      
> >>>
> >>>>On Behalf Of cstrato
> >>>>Sent: Tuesday, May 27, 2003 5:29 PM
> >>>>To: >> Roottalk@Pcroot. Cern. Ch
> >>>>Subject: [ROOT] Scrolling a list
> >>>>
> >>>>Dear Rooters
> >>>>
> >>>>In my GUI I would like to add items to a scrollable list, i.e. to a
> >>>>list which adds also a horizontal scrollbar if the text of the items
> >>>>does not fit within the frame.
> >>>>Sorrowly, TGListBox does only add a vertical scrollbar, while
> >>>>TGFileContainer (and TGLVContainer?) adds only a horizontal
> >>>>scrollbar (for list layout) or a vertical scrollbar (for list
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>details),
> >>> 
> >>>
> >>>      
> >>>
> >>>>but never both scrollbars, as e.g. seen when TBrowser is resized.
> >>>>
> >>>>Which classes do I have to use to be able to fill a scrollable list?
> >>>>
> >>>>Thank you in advance
> >>>>Best regards
> >>>>Christian
> >>>>_._._._._._._._._._._._._._._._
> >>>>C.h.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
> >>>>_._._._._._._._._._._._._._._._
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>
> >>>       
> >>>
-- 
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 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET