More fixes.

This commit is contained in:
Pietro Gagliardi 2015-05-30 03:16:55 -04:00
parent 7da5e52621
commit d00bd04031
1 changed files with 4 additions and 4 deletions

View File

@ -34,9 +34,9 @@ static void showHidePage(struct tab *t, LRESULT which, int hide)
return; return;
page = ptrArrayIndex(t->pages, struct tabPage *, which); page = ptrArrayIndex(t->pages, struct tabPage *, which);
if (hide) if (hide)
uiControlContainerHide(page->control); //TODO uiControlContainerHide(page->control);
else { else {
uiControlContainerShow(page->control); //TODO uiControlContainerShow(page->control);
// we only resize the current page, so we have to do this here // we only resize the current page, so we have to do this here
uiControlQueueResize(page->control); uiControlQueueResize(page->control);
} }
@ -140,7 +140,7 @@ static void tabInsertAt(uiTab *tt, const char *name, uintmax_t n, uiControl *chi
page->control = child; page->control = child;
uiControlSetParent(page->control, uiControl(t)); uiControlSetParent(page->control, uiControl(t));
// and make it invisible at first; we show it later if needed // and make it invisible at first; we show it later if needed
uiControlContainerHide(page->control); //TODO uiControlContainerHide(page->control);
ptrArrayInsertAt(t->pages, n, page); ptrArrayInsertAt(t->pages, n, page);
ZeroMemory(&item, sizeof (TCITEMW)); ZeroMemory(&item, sizeof (TCITEMW));
@ -176,7 +176,7 @@ static void tabDelete(uiTab *tt, uintmax_t n)
// and keep the page control alive // and keep the page control alive
uiControlSetParent(page->control, NULL); uiControlSetParent(page->control, NULL);
// and show it again, as we don't know where it will go next // and show it again, as we don't know where it will go next
uiControlContainerShow(page->control); //TODO uiControlContainerShow(page->control);
uiFree(page); uiFree(page);
} }