示例#1
0
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);
    }
}
示例#2
0
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);
}