summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2011-01-30 21:45:57 +0100
committerAndreas Baumann <abaumann@yahoo.com>2011-01-30 21:45:57 +0100
commit0aa41bf5327b8ce185d4a37bd6724c0cde93a5bc (patch)
treed23d86d17cb6a6fa13dda8cb6a0f81acfede3dea
parent674a2a1e18d0f0c5e7445d35a17396cf9ac6dd4b (diff)
downloadtvisiontest-0aa41bf5327b8ce185d4a37bd6724c0cde93a5bc.tar.gz
tvisiontest-0aa41bf5327b8ce185d4a37bd6724c0cde93a5bc.tar.bz2
-
-rw-r--r--src/newt/test1.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/newt/test1.cpp b/src/newt/test1.cpp
index d1c33de..cca9ba5 100644
--- a/src/newt/test1.cpp
+++ b/src/newt/test1.cpp
@@ -27,18 +27,16 @@ int main( void )
label2, inputline2, ok, cancel;
form = newtForm( NULL, NULL, 0 );
- label1 = newtTextbox( 2, 1, 20, 1, 0 );
- newtTextboxSetText( label1, "First name:" );
+ label1 = newtLabel( 2, 1, "First name:" );
const char *str1 = "";
- inputline1 = newtEntry( 20, 1, str1, 20, &str1,
+ inputline1 = newtEntry( 20, 1, str1, 20, NULL,
NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT );
- label2 = newtTextbox( 2, 2, 20, 1, 0 );
- newtTextboxSetText( label2, "Second name:" );
+ label2 = newtLabel( 2, 2, "Second name:" );
const char *str2 = "";
- inputline2 = newtEntry( 20, 2, str2, 20, &str2,
+ inputline2 = newtEntry( 20, 2, str2, 20, NULL,
NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT );
- ok = newtCompactButton( 4, 10, "Ok" );
- cancel = newtCompactButton( 20, 10, "Cancel" );
+ ok = newtCompactButton( 4, 12, "Ok" );
+ cancel = newtCompactButton( 20, 12, "Cancel" );
newtFormAddComponents( form, label1, inputline1, label2, inputline2, ok, cancel, NULL );
// set timeout