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 |
|
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 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;
}
|
|
|
|
|
How to use callbacks with "embedded" controls...
By: forlano on Sun, 16 April 2006 18:54
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Mon, 17 April 2006 02:54
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Mon, 17 April 2006 09:33
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Mon, 17 April 2006 10:03
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Mon, 17 April 2006 10:19
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Mon, 17 April 2006 11:04
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Mon, 17 April 2006 11:19
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Mon, 17 April 2006 11:55
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Mon, 17 April 2006 12:15
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Wed, 19 April 2006 06:26
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Wed, 19 April 2006 09:16
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Wed, 19 April 2006 16:44
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Wed, 19 April 2006 17:25
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Wed, 19 April 2006 17:35
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Wed, 19 April 2006 21:36
|
|
|
Re: How to use callbacks with "embedded" controls...
By: forlano on Thu, 20 April 2006 00:46
|
|
|
Re: How to use callbacks with "embedded" controls...
By: fudadmin on Thu, 20 April 2006 05:02
|
Goto Forum:
Current Time: Thu May 09 16:02:48 CEST 2024
Total time taken to generate the page: 0.01832 seconds
|