Ejemplo n.º 1
0
wxObject* MyWxDataViewListCtrlHandler::DoCreateResource()
{
    if(m_class == "wxDataViewColumn") {
        HandleListCol();

    } else {
        wxASSERT_MSG(m_class == "wxDataViewListCtrl", wxT("can't handle unknown node"));

        return HandleListCtrl();
    }

    return m_parentAsWindow;
}
Ejemplo n.º 2
0
wxObject *wxListCtrlXmlHandler::DoCreateResource()
{
    if ( m_class == LISTITEM_CLASS_NAME )
    {
        HandleListItem();
    }
    else if ( m_class == LISTCOL_CLASS_NAME )
    {
        HandleListCol();
    }
    else
    {
        wxASSERT_MSG( m_class == LISTCTRL_CLASS_NAME,
                        "can't handle unknown node" );

        return HandleListCtrl();
    }

    return m_parentAsWindow;
}