Column(s) fitting |
Post Reply |
Author | |
Paddy
Groupie Joined: 28 July 2003 Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 29 August 2007 at 10:21am |
Hi,
I try to change my columns width to a best fit (like a double click for each column): CXTPReportColumns* theColumns = m_wndReport.GetColumns(); if (NULL != theColumns) { int nbColumns = theColumns->GetCount(); for (int i = 0; i < nbColumns; i++) { CXTPReportColumn* theColumn = theColumns->GetAt(i); if (NULL != theColumn) { if (theColumn != m_pSmallPicsColumn) m_wndReport.GetReportHeader()->BestFit(theColumn); } } } But it seems the columns just have the width "column.caption+6" as in the source? I need a width like "max_columnentry_width+6"... Greets, Patrik |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |