I'm a little further along now and discovered that it only does this when
the table is empty.  That is, when the columns have names but there is no
data in the table itself.

Craig

Here is the method I'm using to create the TableView:

void MainPage::CreateProductTableView()
{
    // Layout
    // TableView
    m_pProductTableView = new Ext::TableView();
    m_pProductTableView->resize(200, 670);
    m_pProductTableView->setModel(m_pModel->GetProducts());
    m_pProductTableView->setSelectionBehavior(SelectRows);
    m_pProductTableView->setSelectionMode(SingleSelection);
    m_pProductTableView->setAlternatingRowColors(true);
    m_pProductTableView->setDataLocation(Ext::ServerSide);
    m_pProductTableView->setPageSize(10);
    m_pProductTableView->setAutoScrollBars(true);
    m_pProductTableView->itemSelectionChanged().connect(SLOT(this,
MainPage::OnProductSelected));

    // ID
    m_pProductTableView->setColumnSortable(0, true);
    m_pProductTableView->enableColumnHiding(0, true);
    m_pProductTableView->setColumnWidth(0,20);

    // Name
    m_pProductTableView->setColumnSortable(1, true);
    m_pProductTableView->enableColumnHiding(1, true);
    m_pProductTableView->setAutoExpandColumn(1);

    // Manufacturer ID - Hidden
    //m_pProductTableView->setColumnHidden(2, true);

    Ext::ToolBar* pToolBar = new Ext::ToolBar();
    m_pProductEdit = new Ext::LineEdit();
    pToolBar->add(m_pProductEdit);

    pToolBar->addButton("Add Product",SLOT(this, MainPage::AddProduct));
    m_pProductTableView->setBottomToolBar(pToolBar);
}



On Fri, Mar 5, 2010 at 8:07 AM, Pieter Libin <[email protected]> wrote:

> Dear Craig,
>
> can you send us a code sample to reproduce this issue?
>
> Kind regards,
>
> Pieter
>
> On 26 February 2010 11:38, Miller, Craig <[email protected]>wrote:
>
>> Is it possible to enable horizontal scrollbars inside a tableview when the
>> columns are wider than the table?
>>
>> I tried setting AutoScrollBars(true) in the Panel base class, but it had
>> no effect.  Any ideas?
>>
>> Thanks,
>> Craig
>>
>> --
>> Craig Miller
>> Geospatial Software Architect
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>


-- 
Craig Miller
Geospatial Software Architect
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to