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++ Widgets - General questions or Mixed problems » ColumnList question (sort column)
Re: ColumnList question (sort column) [message #2912 is a reply to message #2909] Sat, 29 April 2006 21:41 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1207
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Sat, 29 April 2006 19:52

I don't know how much useful for your case but you can try to study ide/Custom.cpp:
class CustomOrder : public ArrayCtrl::Order {
public:
	virtual bool operator()(const Vector<Value>& row1, const Vector<Value>& row2) const {
		for(int i = 0; i < 3; i++)
			if(String(row1[i]) != String(row2[i]))
				return String(row1[i]) < String(row2[i]);
		return false;
	}
};

and related stuff...


Shocked Oh my God ...
I guess I'll continue to live with an unsorted columnlist Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to set window shape by means of a bitmap?
Next Topic: Borderless always-on-top non-modal window
Goto Forum:
  


Current Time: Sat Jun 07 13:04:56 CEST 2025

Total time taken to generate the page: 0.05016 seconds