void CDNewsViewController::pageControlCallBack(CrossApp::CAControl *btn, CrossApp::DPoint point){ CAPageControl* button = (CAPageControl*)btn; p_PageView->setCurrPage(button->getCurrentPage()+1, true); if (m_page.size()>0) { pageViewTitle->setText(m_page[button->getCurrentPage()].m_title); } }
void PageViewTest::pageControlCallBack(CrossApp::CAControl *btn, CrossApp::DPoint point) { CAPageControl* button = (CAPageControl*)btn; CCLog("btn_tag===%d",button->getCurrentPage()); p_pageView->setCurrPage(button->getCurrentPage(), true); }