>Hi, > >how can I update the text shown in TGTextEntry ? >In my code I do something like > >fTextEntry->GetBuffer()->Clear(); >fTextEntry->GetBuffer()->AddText(0,tString); > >tString is shown after I click on the text entry using the mouse. >How could I show tString immediately (without clicking with mouse). >I see that fTextEntry->ReDraw() is protected and can not help here. > >thanks for your help >Dirk Hi: A not-so-clean way of doing this is to enable the TGTextEntry (even when it is enabled) using: TGTextEntry->SetState(kTRUE); This forces an update in the TGTextEntry and displays the new text. ------------------------------------------------- Julio C. Rodriguez Martino Fysikum - Stockholms Universitet Box 6730 S- 113 85 - Stockholm SWEDEN Office phone: +46-8-164694 FAX: +46-8-34 78 17 E-mail: julio@physto.se
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET