Esempio n. 1
0
/**
 * Hides this control
 */
void CTabControl::hide()
{
	LOG("Entering");
	ShowWindow(hwnd, SW_HIDE);
	hideAllPages();
	LOG("Leaving");
}
Esempio n. 2
0
/**
 * 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();
}
Esempio n. 3
0
/**
 * 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");
}
Esempio n. 4
0
void ofxUIPageManager::showPage(int num){
    if (!pages.size() > 0) return;
    if (!isVisible) return;
    hideAllPages();
    pages[num]->setVisible(true);
}
Esempio n. 5
0
void ofxUIPageManager::hide(){
    if (!pages.size() > 0) return;
    isVisible = false;
    pageList->setVisible(false);
    hideAllPages();
}