Threw up very basic control tests in the test program.
This commit is contained in:
parent
4c280ca42c
commit
3249092061
|
@ -21,6 +21,7 @@ int main(int argc, char *argv[])
|
||||||
const char *err;
|
const char *err;
|
||||||
uiWindow *w;
|
uiWindow *w;
|
||||||
uiTab *tab;
|
uiTab *tab;
|
||||||
|
uiBox *vbox;
|
||||||
|
|
||||||
memset(&o, 0, sizeof (uiInitOptions));
|
memset(&o, 0, sizeof (uiInitOptions));
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
|
@ -44,13 +45,19 @@ int main(int argc, char *argv[])
|
||||||
uiWindowOnClosing(w, onClosing, NULL);
|
uiWindowOnClosing(w, onClosing, NULL);
|
||||||
|
|
||||||
tab = newTab();
|
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 2", uiControl(newVerticalBox()));
|
||||||
uiTabAppendPage(tab, "Page 3", uiControl(newVerticalBox()));
|
uiTabAppendPage(tab, "Page 3", uiControl(newVerticalBox()));
|
||||||
uiTabDeletePage(tab, 1);
|
uiTabDeletePage(tab, 1);
|
||||||
// TODO delete the stack
|
// TODO delete the stack
|
||||||
uiWindowSetChild(w, uiControl(tab));
|
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(newWindow("Second Window", 320, 240, 1)));
|
||||||
|
|
||||||
uiControlShow(uiControl(w));
|
uiControlShow(uiControl(w));
|
||||||
|
|
Loading…
Reference in New Issue