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 » TreeCtrl » TreeCtrl - how to change images dynamically? [SOLVED + FIXED]
Re: TreeCtrl - how to change images dynamically? [message #2314 is a reply to message #2312] Sat, 08 April 2006 01:14 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
fudadmin wrote on Fri, 07 April 2006 21:20

in TreeCtrl
There are methods:
	void   Set(int id, Value value);
	void   Set(int id, Value key, Value value);

but no for images...
How to change images dynamically?
(other than add or insert!!!)


I haven't done a lot of thinking but this works for me:
void  TreeCtrl::Set(int id, const Image& img)
{
	Item& m = item[id];
//	if(m.ctrl) {    //Edit: in fact this dosn't work ?
		m.image = img;
		RefreshItem(id);
//	}
}


If there is no other way, maybe it would be good to have added something like above?
Also, question arises, how to add a series of images?

[Updated on: Sat, 08 April 2006 01:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TreeCtrl - how to set horizontal grid? [NEEDS IMPLEMENTATION...]
Next Topic: Missing callback trigger in OptionTree? [SOLVED/FIXED]
Goto Forum:
  


Current Time: Fri May 10 09:39:40 CEST 2024

Total time taken to generate the page: 0.01847 seconds