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++ Callbacks and Timers » "Suicide Buttons Array" or how to re-index callbacks or...?
Re: "Suicide Buttons Array" or how to re-index callbacks or...? [message #3504 is a reply to message #3502] Mon, 29 May 2006 20:01 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
P.S. Or what could be a more effective way than:
	void ReIndex(){
		for(int i=0;i<buts.GetCount();i++){
			buts[i].SetLabel(AsString(i));
			buts[i].WhenAction=callback1(this,Suicide,i);
		}
.S. Or what could be a more effective way than:
void ReIndex(){
for(int i=0;i<buts.GetCount();i++){
buts[i].SetLabel(AsString(i));
buts[i].WhenAction=callback1(this,Suicide,i);
}
every time after removing?
Or maybe to mark them as dead and then to filter actions everywhere else?
Are there any better ways?
 
Read Message
Read Message
Read Message
Previous Topic: what KillPostCallback is suppose to do
Next Topic: Question about PostCallback from Child Thread
Goto Forum:
  


Current Time: Sun Apr 28 18:37:32 CEST 2024

Total time taken to generate the page: 0.02830 seconds