libui/redo/test/page4.c

25 lines
429 B
C
Raw Normal View History

// 19 may 2015
#include "test.h"
static uiSpinbox *spinbox;
2015-05-19 17:17:30 -05:00
#define CHANGED(what) \
static void on ## what ## Changed(ui ## what *this, void *data) \
{ \
printf("on %s changed\n", #what); \
}
CHANGED(Spinbox)
uiBox *makePage4(void)
{
uiBox *page4;
page4 = newVerticalBox();
spinbox = uiNewSpinbox();
2015-05-19 17:17:30 -05:00
uiSpinboxOnChanged(spinbox, onSpinboxChanged, NULL);
uiBoxAppend(page4, uiControl(spinbox), 0);
return page4;
}