Use Resize(). Like in: fTitle = new TGTextEntry(f4, fTbtitle = new TGTextBuffer(100)); fTitle->Resize(300, fTitle->GetDefaultHeight()); This makes the textentry 300 pixels wide and uses natural (font) height. See also $ROOTSYS/guitest.cxx. Cheers, Fons. Yves Schutz wrote: > > Hi, > > How can I fix the width of a TGTextEntry widget ? > > thanks ... yves > -- > Yves SCHUTZ GANIL (IN2P3 - CNRS) collaboration TAPS http://ganp03.in2p3.fr > GANIL Telephone: (33) 2 31 45 47 01 > BP 5027 Fax : (33) 2 31 45 46 65 > F-14076 Caen e-mail : mailto:SCHUTZ@IN2P3.FR -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET