/** * Hides this control */ void CTabControl::hide() { LOG("Entering"); ShowWindow(hwnd, SW_HIDE); hideAllPages(); LOG("Leaving"); }
/** * Selects the page */ void CTabControl::selectPage(int page) { LOG_S("Selected the page:", pages[page]->getText()); TabCtrl_SetCurSel(getHandle(), page); currentPage = pages[page]; hideAllPages(); currentPage->show(); }
/** * Shows the tabcontrol. */ void CTabControl::show() { LOG("Entering..."); ShowWindow(hwnd, SW_SHOW); hideAllPages(); if(currentPage) { LOG("We have a current page"); currentPage->show(); } LOG("Leaving"); }
void ofxUIPageManager::showPage(int num){ if (!pages.size() > 0) return; if (!isVisible) return; hideAllPages(); pages[num]->setVisible(true); }
void ofxUIPageManager::hide(){ if (!pages.size() > 0) return; isVisible = false; pageList->setVisible(false); hideAllPages(); }