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 » Image In Cell In ArrayCtrl ? !!
Re: Image In Cell In ArrayCtrl ? !! [message #20846 is a reply to message #20845] Tue, 14 April 2009 04:23 Go to previous messageGo to previous message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
You have to use a Display derived class. If you want to use one cell for multi purpose (text - image) you have to create a new Display else you may use one which exist. See Display for references.

The following code add images from a iml file.
	ArrayCtrl arct;
	// ...
	arct.AddColumn("Text");
	arct.AddColumn("Image").SetDisplay(ImageDisplay()); // set a custom display for Image column
	for(int i = 0; i < Imgs::GetCount(); i++)
		arct.Add(Imgs::GetId(i), Imgs::Get(i));
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to set fontsize in GridCtrl
Next Topic: finding row by key
Goto Forum:
  


Current Time: Fri Jul 18 06:46:12 CEST 2025

Total time taken to generate the page: 0.04072 seconds