Finished implementing uiTab enable/disable on Windows.

This commit is contained in:
Pietro Gagliardi 2015-05-04 14:45:18 -04:00
parent 5c9751f4d4
commit 7f41a3982f
1 changed files with 9 additions and 0 deletions

View File

@ -96,22 +96,31 @@ static void tabPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_
static void tabEnable(uiControl *c)
{
struct tab *t = (struct tab *) c;
uintmax_t i;
(*(t->baseEnable))(uiControl(t));
for (i = 0; i < t->len; i++)
uiControlEnable(uiControl(t->pages[i]));
}
static void tabDisable(uiControl *c)
{
struct tab *t = (struct tab *) c;
uintmax_t i;
(*(t->baseDisable))(uiControl(t));
for (i = 0; i < t->len; i++)
uiControlDisable(uiControl(t->pages[i]));
}
static void tabSysFunc(uiControl *c, uiControlSysFuncParams *p)
{
struct tab *t = (struct tab *) c;
uintmax_t i;
(*(t->baseSysFunc))(uiControl(t), p);
for (i = 0; i < t->len; i++)
uiControlSysFunc(uiControl(t->pages[i]), p);
}
// common code for resizes