Root gui: How to yield control

Hi everyone,

I am trying to create a gui program with Root where i have one button that initiates a constant graphing prcess, for example a sin wave that runs down the x-axis. I also want to creat a stop botton and have other process running on the same gui, like a calculator. In MFC you would have to yield control and peek at whether an event has taken place, such as the stop button being pressed or textEntry box being entered.
I am wondering if a similar process exists in Root.
thanks.

take care.

John

see example in tutorial guitest.C (or test program guitest.cxx).
eg with tutorial guitest.C
root > .x guitest.C
-select “Dialog” from “Test” menu
-select “Tab 3”

Rene