mr_ped Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
Try to look at Bazaar/TestScatter2 package, maybe it will give you some ideas, although it may be a bit overwhelming as the Scatter control is probably somewhat too complex for what you want.
From your short piece of code... the "w" is the drawing area, where you output picture for user. If you would change "curve" dynamically, each repaint you will get moving curve. If you will react to mouse events somehow (check scatter demo, it does show tooltip with mouse position in graph on left click), your program will be interactive.