Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Some petitions for GridCtrl
Re: Some petitions for GridCtrl [message #28912 is a reply to message #28896] Sun, 26 September 2010 04:18 Go to previous messageGo to previous message
sevenjay is currently offline  sevenjay
Messages: 30
Registered: October 2008
Location: Taiwan
Member
more one, i need to record the width of each column.
Find the width by Id:
int GridCtrl::FindColWidth(const Id& id)
{
    for(int i = fixed_cols; i < total_cols; i++)
        if(aliases.GetKey(i) == id)
            return hitems[i].Width();

    return -1;
}

And there is a little bug for column Hidden().
when column Hidden(false) will be hidden.
Modify in GridBase.cpp:
GridCtrl::ItemRect& GridCtrl::ItemRect::Hidden(bool b)
{
    hidden = b;
    if(hidden) size = 0;//modify this to avoid alway hidden
    return *this;
}

BTW, GridCtrl is a very great control.
Thank you all.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl changed add row behavior
Next Topic: UI virtualization
Goto Forum:
  


Current Time: Thu Mar 28 10:14:40 CET 2024

Total time taken to generate the page: 0.01465 seconds