Hi Dirk, every GUI element, which derives from TGObject has access to the TGClient via TGObject::fClient. Best is to use fClient (gClient->GetColorByName() in guitest.cxx, should be fClient although the pointer is the same). Cheers, Fons. Dirk Meier wrote: > > Hi, > > the guitest example uses fClient->GetRoot() and gClient->GetRoot() > as arguments for various gui menus. > I believe gClient is a global intance of TGClient. > But what is fClient ? > In fact if I replace `fClient' with `gClient' in guitest.cxx and > recompile there seems to be no difference. > > Anybody knows what is fClient and what is its meaning compared > to gClient? > > Dirk -- 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 04 2000 - 00:43:39 MET