a53cd3d253
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su>
44 lines
688 B
C
44 lines
688 B
C
/*
|
|
* ftree1.c
|
|
*
|
|
* small test-driver for new dialog functionality
|
|
*
|
|
* Copyright (c) 1998, Anatoly A. Orehovsky
|
|
*
|
|
* file ./ftree1.test with xterm widget tree from
|
|
* direct editres(1) dump needed !!!
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <dialog.h>
|
|
|
|
int
|
|
main(int argc, unsigned char *argv[])
|
|
{
|
|
int retval;
|
|
unsigned char *tresult;
|
|
|
|
init_dialog();
|
|
retval = dialog_ftree("ftree1.test", '\t',
|
|
"ftree dialog box example",
|
|
"xterm widget tree from direct editres(1) dump",
|
|
-1, -1, 15,
|
|
&tresult);
|
|
|
|
dialog_update();
|
|
|
|
dialog_clear();
|
|
|
|
end_dialog();
|
|
|
|
if (!retval)
|
|
{
|
|
puts(tresult);
|
|
free(tresult);
|
|
}
|
|
|
|
exit(retval);
|
|
}
|