---------- Forwarded message ---------- Date: Tue, 23 May 2000 16:55:19 -0400 (EDT) From: Olivier D'Arcy <darcy@ligo.mit.edu> To: julien@ligo.mit.edu Subject: unable to run a gui I have written a Mymainframe class derived from TGMainframe in order to create a gui with plots and window. Then in my main function, I create a Mymainframe object with the new function. After the frame is created I would like to launch an infinite loop that updates the plots in realtime by reading datafiles. But the problem is that the frame itself only appears on the screen when the main returns, so the infinite loop is tryibg to update my plots before the plots are first drawn. Since I want an infinite loop, I need to make my frame appear first and then start the update_loop() method. this is how my code looks like: main() { myframe = new Mymainframe(..., gClient->GetRoot(), 500, 500, ...); update_loop(filename...); } Can somebody help with this?
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET