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 » GridCtrl performance
Re: GridCtrl performance [message #39776 is a reply to message #39775] Thu, 25 April 2013 18:53 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
crydev wrote on Thu, 25 April 2013 17:49

However, I'm having trouble implementing my own data in it. Say I have the following data, how could this be properly implemented using the virtual ArrayCtrl?

template <class T>
struct MemData
{
	int address;	// column address
	T value;	// column value
};



Depends from the type of T. If T is String, then modified version of example application might look like follows:
Toggle Spoiler

If you need to use another types, then just change the function declaration of NumberToText template, but return compatible types for ArrayCtrl values (which is Value).

[Updated on: Thu, 25 April 2013 18:54]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Minor bug & patch] ArrayCtrl and HeaderCtrl should use native resizing icons on X11.
Next Topic: pagination base ArrayCtrl
Goto Forum:
  


Current Time: Sun Jun 16 19:39:39 CEST 2024

Total time taken to generate the page: 0.02812 seconds