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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » ForlanoVega ArrayCtrl console app...
Re: ForlanoVega ArrayCtrl console app... [message #2683 is a reply to message #2679] Thu, 20 April 2006 23:32 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Thu, 20 April 2006 21:40


Exactly! I'm happy that my example helps you! It's better than "debugging" with Prompts, isn't it? Smile

Of course I agree!
Your console is very cool. I will adapt it for a super status bar. Now I've added my warning in corrispondence of the click of the optionimage
void VegaMain::UpdateFocusAndInfo(const String& _who, const String& _what)
{   String s, player;
	int m;
	
//	tab1.arr.ChildGotFocus();   //lets move the focus after calculations...
	UpdateInfo(_who, _what);
	
	m = tab1.arr.GetCursor();	
    player = tab1.arr.Get( m, "Name");
	s=AsString( tab1.arr.Get( m, "Avail") );		
    if (s=="1") PromptOK("Player " + player + " is now available");	
    else if (s=="0") PromptOK("Player " + player + " is NOT available");	
    else PromptOK("You have assigned a BYE to player " + player);	
}

It recognises the state of the button and catch the name of the player for a clear warning. As you see I've commented the ChildGotFocus to do an experiemnt. I didn't see any difference with the non commented row. So the question is: why we need it?
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use callbacks with "embedded" controls...
Next Topic: Batch processing images using U++ (new Image code)
Goto Forum:
  


Current Time: Sat May 11 07:45:41 CEST 2024

Total time taken to generate the page: 0.03498 seconds