U++ framework
Do not panic. Ask here before giving up.

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: Thu Jul 09 23:57:40 GMT+2 2026

Total time taken to generate the page: 0.00462 seconds