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 world is full of judgment-days, and into every assembly that a man enters, in every action he attempts, he is gauged and stamped.
    Ralph Waldo Emerson (1803–1882)

    Religion! How it dominates man’s mind, how it humiliates and degrades his soul. God is everything, man is nothing, says religion. But out of that nothing God has created a kingdom so despotic, so tyrannical, so cruel, so terribly exacting that naught but gloom and tears and blood have ruled the world since gods began.
    Emma Goldman (1869–1940)