Re: [ROOT] TGPictureButton

From: Brett Viren (bv@bnl.gov)
Date: Tue Oct 08 2002 - 17:56:10 MEST


Carlos Sanchez writes:
 > 
 > Hi,
 > 
 > I am trying to put a button with a picture into a GUI. I do
 > 
 > 	const TGPicture *pic = fClient->GetPicture("tb_uplevel.xpm")
 > 	fCdup = new TGPictureButton(fC1,fPcdup,M_CDUP);
 > 
 > When I do .x GUI.C root complaints that fClient does not exit? 

You must be copying some example of a class which inherits from
TGWindow.  "fClient" is a protected data member of such classes.

Use gClient->... if you are programming in the context of a
non-TGWindow class.

-Brett.



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:13 MET