Threw up very basic control tests in the test program.

This commit is contained in:
Pietro Gagliardi 2015-04-29 10:23:45 -04:00
parent 4c280ca42c
commit 3249092061
1 changed files with 8 additions and 1 deletions

View File

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