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, a stranger and afraid
    In a world I never made.
    —A.E. (Alfred Edward)

    Round the cape of a sudden came the sea,
    And the sun looked over the mountain’s rim:
    And straight was a path of gold for him,
    And the need of a world of men for me.
    Robert Browning (1812–1889)