int TabControl::writeChildWindowsXML(XMLSerializer& xml_stream) const { int childOutputCount = Window::writeChildWindowsXML(xml_stream); // since TabControl content is actually added to the component tab // content pane window, this overridden function exists to dump those // out as if they were our own children. for (size_t i = 0; i < getTabCount(); ++i) { getTabContentsAtIndex(i)->writeXMLToStream(xml_stream); ++childOutputCount; } return childOutputCount; }
/************************************************************************* Set the selected tab by window name *************************************************************************/ void TabControl::setSelectedTabAtIndex(size_t index) { selectTab_impl(getTabContentsAtIndex(index)); }
/************************************************************************* Make the tab by window name visible *************************************************************************/ void TabControl::makeTabVisibleAtIndex(size_t index) { makeTabVisible_impl(getTabContentsAtIndex(index)); }
/************************************************************************* Set the selected tab by window name *************************************************************************/ void TabControl::setSelectedTabAtIndex(uint index) { Window* wnd = getTabContentsAtIndex(index); selectTab_impl(wnd); }