From cef6abcea6218c9638ba67edca9755f7d3fa359f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 20 Jun 2006 18:48:21 +0000 Subject: Always add a bit of padding inside windows (removes the need to add padding explicitly in labels). Set the window title from the desktop title. Only draw widget selection highlight in the window with focus (top window). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 560 --- textscreen/examples/guitest.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'textscreen/examples') diff --git a/textscreen/examples/guitest.c b/textscreen/examples/guitest.c index 73a3aa25..f3d27582 100644 --- a/textscreen/examples/guitest.c +++ b/textscreen/examples/guitest.c @@ -77,9 +77,9 @@ void SetupWindow(void) TXT_AddWidget(window, TXT_NewSeparator("Main section")); table = TXT_NewTable(3); - toplabel = TXT_NewLabel(" This is a multiline label.\n" - " A single label object contains \n" - " all three of these lines.\n"); + toplabel = TXT_NewLabel("This is a multiline label.\n" + "A single label object contains \n" + "all three of these lines.\n"); TXT_AddWidget(window, toplabel); TXT_SetWidgetAlign(toplabel, TXT_HORIZ_CENTER); @@ -87,11 +87,11 @@ void SetupWindow(void) for (i=0; i<5; ++i) { - sprintf(buf, " Option %i in a table:", i + 1); + sprintf(buf, "Option %i in a table:", i + 1); TXT_AddWidget(table, TXT_NewLabel(buf)); - sprintf(buf, "Button %i-1", i + 1); + sprintf(buf, " Button %i-1 ", i + 1); TXT_AddWidget(table, TXT_NewButton(buf)); - sprintf(buf, "Button %i-2", i + 1); + sprintf(buf, " Button %i-2 ", i + 1); TXT_AddWidget(table, TXT_NewButton(buf)); } @@ -153,9 +153,9 @@ void Window2(void) TXT_AddWidget(window, TXT_NewSeparator("Input boxes")); table = TXT_NewTable(2); TXT_AddWidget(window, table); - TXT_AddWidget(table, TXT_NewLabel(" String: ")); + TXT_AddWidget(table, TXT_NewLabel("String: ")); TXT_AddWidget(table, TXT_NewInputBox(&textbox_value, 30)); - TXT_AddWidget(table, TXT_NewLabel(" Int: ")); + TXT_AddWidget(table, TXT_NewLabel("Int: ")); TXT_AddWidget(table, TXT_NewIntInputBox(&numbox_value, 10)); } -- cgit v1.2.3