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;
|
||||
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));
|
||||
|
|
Loading…
Reference in New Issue