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:

    I am positive I have a soul; nor can all the books with which materialists have pester’d the world ever convince me of the contrary.
    Laurence Sterne (1713–1768)

    The only human beings I have thoroughly admired and respected in the world have been those who carried the load of the world with a smile, and who, in the face of anxieties that would have knocked me clean out, never showed a tremor. Such men and women end by owning us, soul and body, and our allegiance can never be shaken. We are only too glad to be owned. Religion is nothing but this.
    Henry Brooks Adams (1838–1918)