]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
1) added root text
authorewt <ewt>
Mon, 12 Aug 1996 20:04:40 +0000 (20:04 +0000)
committerewt <ewt>
Mon, 12 Aug 1996 20:04:40 +0000 (20:04 +0000)
2) added help line
3) changed colorset define

test.c

diff --git a/test.c b/test.c
index 5ebb4998639f6809ca2b0e95be509eec302ab100..ec92e36eb5e4428954c43c0cd387b8f9325e3645 100644 (file)
--- a/test.c
+++ b/test.c
@@ -17,6 +17,9 @@ void main(void) {
     newtInit();
     newtCls();
 
+    newtDrawRootText(0, 0, "Newt test program");
+    newtPushHelpLine("Some help text");
+
     newtOpenWindow(2, 2, 30, 10, "first window");
     newtOpenWindow(10, 5, 65, 16, "window 2");
 
@@ -30,7 +33,7 @@ void main(void) {
     r3 = newtRadiobutton(20, 8, "Choice 3", 0, r2);
     rsf = newtForm(NULL, NULL, 0);
     newtFormAddComponents(rsf, r1, r2, r3, NULL);
-    newtFormSetBackground(rsf, COLORSET_CHECKBOX);
+    newtFormSetBackground(rsf, NEWT_COLORSET_CHECKBOX);
 
     for (i = 0; i < 10; i++) {
        sprintf(buf, "Check %d", i);