Fox Toolkit - Hello World

Hello World

The following example creates a FOX application and a dialog with a button:

#include "fx.h" int main(int argc, char *argv) { FXApp application("Hello", "FoxTest"); application.init(argc, argv); FXMainWindow *main=new FXMainWindow(&application, "Hello", NULL, NULL, DECOR_ALL); new FXButton(main, "&Hello, World!", NULL, &application, FXApp::ID_QUIT); application.create; main->show(PLACEMENT_SCREEN); return application.run; }

Read more about this topic:  Fox Toolkit

Famous quotes containing the word world:

    The body and the soul know how to play
    In that dark world where gods have lost their way.
    Theodore Roethke (1908–1963)

    All my life long I have been sensible of the injustice constantly done to women. Since I have had to fight the world single-handed, there has not been one day I have not smarted under the wrongs I have had to bear, because I was not only a woman, but a woman doing a man’s work, without any man, husband, son, brother or friend, to stand at my side, and to see some semblance of justice done me. I cannot forget, for injustice is a sixth sense, and rouses all the others.
    Amelia E. Barr (1831–1919)