From f761f821f95a3fbf8af1eb645d8ae9412abdc541 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 20 May 2006 15:15:17 +0000 Subject: Add selectable and visible properties to widgets. Allow the position of windows to be set based on position of top/bottom/center,left/right,center coordinates. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 486 --- textscreen/guitest.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'textscreen/guitest.c') diff --git a/textscreen/guitest.c b/textscreen/guitest.c index 7fc19df8..44da349c 100644 --- a/textscreen/guitest.c +++ b/textscreen/guitest.c @@ -16,7 +16,7 @@ void SetupWindow(void) char buf[100]; int i; - window = TXT_NewWindow("Window test", 40, 12); + window = TXT_NewWindow("Window test"); strcpy(buf, "This is a button label: "); @@ -46,7 +46,11 @@ void Window2(void) txt_window_t *window; int i; - window = TXT_NewWindow("Another test", 50, 7); + window = TXT_NewWindow("Another test"); + TXT_SetWindowPosition(window, + TXT_HORIZ_RIGHT, + TXT_VERT_TOP, + TXT_SCREEN_W - 1, 1); for (i=0; i<5; ++i) { -- cgit v1.2.3