H58863 s 00000/00000/00048 d D 1.2 02/06/03 17:56:47 patch 3 2 c Import patch patch.37 cC cF25393 cK19296 cPsrc/doc/fancyhello.html e s 00048/00000/00000 d D 1.1 02/06/03 17:56:41 patch 2 1 c Import patch patch.01 cC cF25308 cK16969 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/06/03 17:56:41 patch 1 0 c BitKeeper file /home/orc/Src/ndialog/nd/doc/fancyhello.html cBorc@pacific.pell.portland.or.us|ChangeSet|20020604075610|31977|6e29fa5631e78430 cF25307 cHpacific.pell.portland.or.us cK57446 cPnd/doc/fancyhello.html cR49e29352c0af1b32 cV4 cX0x821 cZ-07:00 e u U f e 0 f x 0x821 t T I 2 Fancyhello.c -- Hello, world as an ndialog program
This is a more conventionally gui'ed version of `Hello, world', that will sit there sulking until you press the DONE button:
/*
 * cc -o fancyhello fancyhello.c -lnd -lpanel -lncurses -lgpm
 */
#include <ndialog.h>

main()
{
    int rc;
    void *chain;


    chain = ObjChain(0, newOKButton(0, "Done", 0, 0));

    init_dialog();
    rc = MENU(chain, -1, -1, 0, "Hello, World!", 0);
    end_dialog();

    deleteObjChain(chain);

    exit(rc == MENU_OK ? 0 : 1);
}
This produces pretty much exactly the same output as calling the dialog compatable function dialog_mesgbox(0,"Hello, World!", -1, -1);

Written March 1998 by David Parsons
E 2 I 1 E 1