Prepared the test program for re-adding Page 2.
This commit is contained in:
parent
49e3e6a623
commit
0370f10031
|
@ -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");
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// main.c
|
||||
extern void die(const char *, ...);
|
||||
extern uiBox *mainBox;
|
||||
|
||||
// spaced.c
|
||||
extern void setSpaced(int);
|
||||
|
|
Loading…
Reference in New Issue