in reply to use AnyGUI
As others have pointed out, this kind of cross-GUI system is hard to do right. Since nobody else has mentioned it I would take a look at Java's AWT & Swing APIs for an example of how one language has done it.