Prepared the test program for re-adding Page 2.

This commit is contained in:
Pietro Gagliardi 2015-04-29 19:55:42 -04:00
parent 49e3e6a623
commit 0370f10031
2 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,8 @@ int onClosing(uiWindow *w, void *data)
return 1;
}
uiBox *mainBox;
int main(int argc, char *argv[])
{
uiInitOptions o;
@ -44,13 +46,15 @@ int main(int argc, char *argv[])
w = newWindow("Main Window", 320, 240, 1);
uiWindowOnClosing(w, onClosing, NULL);
mainBox = newHorizontalBox();
uiWindowSetChild(w, uiControl(mainBox));
tab = newTab();
uiBoxAppend(mainBox, uiControl(tab), 1);
page1 = makePage1(w);
uiTabAppendPage(tab, "Page 1", uiControl(page1));
uiWindowSetChild(w, uiControl(tab));
uiControlShow(uiControl(w));
uiMain();
printf("after uiMain()\n");

View File

@ -8,6 +8,7 @@
// main.c
extern void die(const char *, ...);
extern uiBox *mainBox;
// spaced.c
extern void setSpaced(int);