summaryrefslogtreecommitdiff
path: root/textscreen/guitest.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-20 15:15:17 +0000
committerSimon Howard2006-05-20 15:15:17 +0000
commitf761f821f95a3fbf8af1eb645d8ae9412abdc541 (patch)
treec6699ce7a4487043391ee014bca9582bf29b7559 /textscreen/guitest.c
parentc63afd766a9fdb19bc2c3a650f859bbba4699e8f (diff)
downloadchocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.tar.gz
chocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.tar.bz2
chocolate-doom-f761f821f95a3fbf8af1eb645d8ae9412abdc541.zip
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
Diffstat (limited to 'textscreen/guitest.c')
-rw-r--r--textscreen/guitest.c8
1 files changed, 6 insertions, 2 deletions
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)
{