Re: [ROOT] Browser with "Detailed" View

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Jul 05 2001 - 17:30:59 MEST


Hi Jacek,

  for all browsers you can set the default in your .rootrc file, like:

Browser.IconStyle:          details

alternatively you could do:

((TRootBrowser*)b->GetBrowserImp())->SendMessage((TRootBrowser*)b->GetBrowserImp(),
MK_MSG(kC_COMMAND,kCM_MENU), 13, 0)

where 13 is details, 12 list, 11 small and 10 big

With the current CVS version you can also do:

((TRootBrowser*)b->GetBrowserImp())->SetDefaults("details")
or
((TRootBrowser*)b->GetBrowserImp())->SetDefaults("details", "size")


Cheers, Fons.




"Jacek M. Holeczek" wrote:
> 
> Hi,
> When I do :
>         TBrowser *b = new TBrowser();
> the browser's default "View" is "Small Icons".
> How can I change it into "Details" ( I mean, does there exist something
> like 'b->SetView("Details")' ?).
> Thanks in advance,
> Jacek.

-- 
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:51 MET