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 #2679 is a reply to message #2678] Thu, 20 April 2006 21:40 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
forlano wrote on Thu, 20 April 2006 19:55

fudadmin wrote on Thu, 20 April 2006 07:42

It is not optimal but just an idea and to help Luigi with callbacks... (if you got one under the same name I suggest the old one to backup and use this one instead)



Aris,

thank you very much for your patience and effort.
I'm studying the code. It is simply excellent for studying how this damned callback among widgets work. From what I saw so far perhaps I'm near (I hope) to catch their logic.
It seems very important where you define them, I mean in which doll of the matrioska they are defined. For example you can run the same method (AddPlayer) in two different places:
1.  tab1.btnAdd.WhenAction = THISBACK2(AddPlayerAndUpdateInfo, "btnAdd", "Add Player"); 
// then in turn run: tab1.AddPlayer();

2.  btnAdd <<= THISBACK(AddPlayer);

Both run AddPlayer() but in the first way you remain in some way out of the class tab1. In the second way you are inside class tab1 and cannot see what there is outside.
Is it correct?
Luigi


Exactly! I'm happy that my example helps you! It's better than "debugging" with Prompts, isn't it? Smile
 
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 08:57:30 CEST 2024

Total time taken to generate the page: 0.02478 seconds