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 » U++ Library : Other (not classified elsewhere) » How can I turn off soring in ArrayCtrl?
How can I turn off soring in ArrayCtrl? [message #49856] Sun, 20 May 2018 20:00 Go to next message
aftershock is currently offline  aftershock
Messages: 137
Registered: May 2008
Experienced Member
Hi,
How can I turn off sorting?
ArrayCtrl param;
params.ToggleSortColumn(0);
That turns it on.
How can I turn it off?


Thanks.
Re: How can I turn off soring in ArrayCtrl? [message #49860 is a reply to message #49856] Mon, 21 May 2018 19:30 Go to previous messageGo to next message
aftershock is currently offline  aftershock
Messages: 137
Registered: May 2008
Experienced Member
I think I found out..
The original order is lost.
SO that is why there is no resetsorting or nosorting option.
Re: How can I turn off soring in ArrayCtrl? [message #49863 is a reply to message #49856] Tue, 22 May 2018 07:29 Go to previous message
aftershock is currently offline  aftershock
Messages: 137
Registered: May 2008
Experienced Member
Here is a patch for this which at least partly, solve the prolbem

A new function in ArrayCtrl

void ArrayCtrl::ResetSorting()
{
for(int i = 0; i < header.GetCount(); i++)
header.Tab(i).SetRightImage(Image());
allsorting = false;
sortcolumn = -1;
sortcolumndescending = false;
}
Previous Topic: I request the implementation of callback5
Next Topic: msc builder patch , msc builder ignore compiler field
Goto Forum:
  


Current Time: Thu Nov 21 09:39:39 CET 2019

Total time taken to generate the page: 0.01147 seconds