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 #2545 is a reply to message #2535] Mon, 17 April 2006 11:19 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


Report any success or failure...


I'm very sorry to remain again on the same argument, but I'm obeserving a strange behaviour and before to say it is a bug it is better to verify.
It regards the OptionImage inside the array. When I click in each cell of the array except the OptionImage the cursor of the array move on the clicked row. This is OK because I can read the selected row and retrieve its data. Instead when I click on the OptionImage the cursor doesn't change Shocked and remains where it was. This is not good because my code cannot intercept the clicked row and in turn the clicked optionimage button.
Is it normal? It seems that the button has overrided the property of that column as it where not in an array.
Is there an alternative way to listen the optionimage button? (if not let's neglect it).
This is the code that prompt the status of the clicked button.

int VegaTab1::GetAvail()
{	int n;
	String s, player, s1;

    //	n = arr.GetCursor(); // doesn't change, so I try the next line
	n = arr.GetClickRow(); // nothing
    // arr.SetCursor( n); 
	
    s=AsString( arr.Get(n, "Avail") );	
	
    player = arr.Get(n, "Name");
    if (s=="1") PromptOK("You have made available player " + player);	
    else if (s=="0") PromptOK("You have made NOT available player " + player);	
    else PromptOK("You have assigned a BYE to player " + player);	


    n = 0;
	for(int i=0; i<arr.GetCount(); i++) {
		if ( arr.Get(i, "Avail") ) n=n+1;
		//s1 += AsString( arr.Get(i, "Avail") ) + " ";	
	}
    //	PromptOK( s1 );	
	return n;
}
 
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 16:02:48 CEST 2024

Total time taken to generate the page: 0.01832 seconds