]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fixed form creation to support syntax change for vertical scrollbars
authorewt <ewt>
Sun, 31 Mar 1996 02:16:00 +0000 (02:16 +0000)
committerewt <ewt>
Sun, 31 Mar 1996 02:16:00 +0000 (02:16 +0000)
test.c

diff --git a/test.c b/test.c
index b68d89142fd097dde1b6559871e63c4cbbfb7432..712cc557b2d300e62092fece2fd552dc846456a1 100644 (file)
--- a/test.c
+++ b/test.c
@@ -20,8 +20,8 @@ void main(void) {
     newtOpenWindow(2, 2, 30, 10, "first window");
     newtOpenWindow(10, 5, 65, 16, "window 2");
 
-    f = newtForm();
-    chklist = newtForm();
+    f = newtForm(NULL);
+    chklist = newtForm(NULL);
 
     b1 = newtButton(3, 1, "Push me");
     b2 = newtButton(18, 1, "Not me");
@@ -47,11 +47,17 @@ void main(void) {
     newtFormAddComponents(f, b1, b2, chklist, NULL);
     newtFormAddComponents(f, r1, r2, r3, l1, l2, l3, e1, e2, e3, NULL);
 
-    lb = newtListbox(45, 3, 2, 0);
-    newtListboxAddEntry(lb, "First ");
-    newtListboxAddEntry(lb, "Second");
-    newtListboxAddEntry(lb, "Third ");
-    newtListboxAddEntry(lb, "Fourth");
+    lb = newtListbox(45, 3, 4, 0);
+    newtListboxAddEntry(lb, "First  ");
+    newtListboxAddEntry(lb, "Second ");
+    newtListboxAddEntry(lb, "Third  ");
+    newtListboxAddEntry(lb, "Fourth ");
+    newtListboxAddEntry(lb, "Fifth  ");
+    newtListboxAddEntry(lb, "Sixth  ");
+    newtListboxAddEntry(lb, "Seventh");
+    newtListboxAddEntry(lb, "Eighth ");
+    newtListboxAddEntry(lb, "Ninth  ");
+    newtListboxAddEntry(lb, "Tenth  ");
 
     newtFormAddComponent(f, lb);