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! » How to use callbacks with "embedded" controls...
Re: How to use callbacks with "embedded" controls... [message #2541 is a reply to message #2535] Mon, 17 April 2006 09:33 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Mon, 17 April 2006 02:54

You can apply this logic with Prompts if you like... Smile
Step8
Report any success or failure...


Every thing work very well! You have anticipated my wishes with the GetAvail method.
My mistake is that I continue to think in C style where all the functions are global and I can jump from one place to another.
Instead now I must put the callback in the right place. It is not immediate but I'll learn.

One more note. I've modified the GetAvail() method to show the status of all the Option image
int VegaTab1::GetAvail()
{	int n=0;
	String s="value=" ;

	for(int i=0; i<arr.GetCount(); i++) {
		if ( arr.Get(i, "Status") ) n=n+1;
		s += AsString( arr.Get(i, "Status") ) + " ";	
	}
	PromptOK( s );	
	return n;
}

I was surprised to observe that the state "Maybe" return no value! I mean, 'V'='true' return 1, 'X'='false' return 0, but
'?'=maybe seemd return nothing? In fact I can't see its value. Is it normal? Maybe it is 'null'. I believed to obtain some thing like 2 or -1.
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to create a non modal dialog
Next Topic: ForlanoVega ArrayCtrl console app...
Goto Forum:
  


Current Time: Thu May 09 05:57:14 CEST 2024

Total time taken to generate the page: 0.01279 seconds