From 3249092061b7d5cf5d109a60be76aaad10ce3aad Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 29 Apr 2015 10:23:45 -0400 Subject: [PATCH] Threw up very basic control tests in the test program. --- new/test/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/new/test/main.c b/new/test/main.c index b140edce..b204fb73 100644 --- a/new/test/main.c +++ b/new/test/main.c @@ -21,6 +21,7 @@ int main(int argc, char *argv[]) const char *err; uiWindow *w; uiTab *tab; + uiBox *vbox; memset(&o, 0, sizeof (uiInitOptions)); for (i = 1; i < argc; i++) @@ -44,13 +45,19 @@ int main(int argc, char *argv[]) uiWindowOnClosing(w, onClosing, NULL); tab = newTab(); - uiTabAppendPage(tab, "Page 1", uiControl(newVerticalBox())); + vbox = newVerticalBox(); + uiTabAppendPage(tab, "Page 1", uiControl(vbox)); uiTabAppendPage(tab, "Page 2", uiControl(newVerticalBox())); uiTabAppendPage(tab, "Page 3", uiControl(newVerticalBox())); uiTabDeletePage(tab, 1); // TODO delete the stack uiWindowSetChild(w, uiControl(tab)); + uiBoxAppend(vbox, uiNewButton("Button"), 0); + uiBoxAppend(vbox, uiNewCheckbox("Checkbox"), 0); + uiBoxAppend(vbox, uiNewEntry(), 0); + uiBoxAppend(vbox, uiNewLabel("Label"), 0); + uiControlShow(uiControl(newWindow("Second Window", 320, 240, 1))); uiControlShow(uiControl(w));