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));