2015-05-19 17:07:34 -05:00
|
|
|
// 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)
|
|
|
|
|
2015-05-19 17:07:34 -05:00
|
|
|
uiBox *makePage4(void)
|
|
|
|
{
|
|
|
|
uiBox *page4;
|
|
|
|
|
|
|
|
page4 = newVerticalBox();
|
|
|
|
|
|
|
|
spinbox = uiNewSpinbox();
|
2015-05-19 17:17:30 -05:00
|
|
|
uiSpinboxOnChanged(spinbox, onSpinboxChanged, NULL);
|
2015-05-19 17:07:34 -05:00
|
|
|
uiBoxAppend(page4, uiControl(spinbox), 0);
|
|
|
|
|
|
|
|
return page4;
|
|
|
|
}
|