]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added test textbox
authorewt <ewt>
Wed, 17 Apr 1996 00:38:38 +0000 (00:38 +0000)
committerewt <ewt>
Wed, 17 Apr 1996 00:38:38 +0000 (00:38 +0000)
test.c

diff --git a/test.c b/test.c
index 712cc557b2d300e62092fece2fd552dc846456a1..5ad849fa070963c78d3e6449cb61e73698072988 100644 (file)
--- a/test.c
+++ b/test.c
@@ -6,7 +6,7 @@
 
 void main(void) {
     newtComponent b1, b2, r1, r2, r3, e1, e2, e3, l1, l2, l3;
-    newtComponent lb;
+    newtComponent lb, t;
     newtComponent cs[10];
     newtComponent f, chklist;
     char results[10];
@@ -59,7 +59,10 @@ void main(void) {
     newtListboxAddEntry(lb, "Ninth  ");
     newtListboxAddEntry(lb, "Tenth  ");
 
-    newtFormAddComponent(f, lb);
+    t = newtTextbox(45, 10, 17, 5, NEWT_TEXTBOX_WRAP);
+    newtTextboxSetText(t, "This is some text does it look okay?\nThis should be alone.\nThis shouldn't be printed");
+
+    newtFormAddComponents(f, lb, t, NULL);
 
     newtRunForm(f);