I have two Browse
Browse1 and Browse2 as you can see on this picture

I need show a message ( with say control) when the user change the cursor of Xbrowse on Browse2
this message is controlled by a function but I need Know wich cell ( of browse1) is selected because I need to read the text into
sample : if the user before select the column numer 5 of Browse1 ( we have 4D)
and then move the mouse on the columns of browse2 row 1
the procedure must control if the teacher of Browse2 is the teacher of 4D classroom , if yes must show the message sample " Teacher of Class"
I Know there is oBrw2:bchange method , but I not Know how have the cell selected of the browse1
If I made
oBrw2:bChange := { || Insegnantedellaclasse(oBrw1,oBrw2) }
Function Insegnantedellaclasse(oBrw1,oBrw2)
? oBrw1:nColSel return the number of column selected
RETURN NIL
It run ok only if the user move the mouse from a record to another ,
If the user move the mouse from a cell to another of the same record the bchange method is not processed
how resolve it ?
Browse1 and Browse2 as you can see on this picture

I need show a message ( with say control) when the user change the cursor of Xbrowse on Browse2
this message is controlled by a function but I need Know wich cell ( of browse1) is selected because I need to read the text into
sample : if the user before select the column numer 5 of Browse1 ( we have 4D)
and then move the mouse on the columns of browse2 row 1
the procedure must control if the teacher of Browse2 is the teacher of 4D classroom , if yes must show the message sample " Teacher of Class"
I Know there is oBrw2:bchange method , but I not Know how have the cell selected of the browse1
If I made
oBrw2:bChange := { || Insegnantedellaclasse(oBrw1,oBrw2) }
Function Insegnantedellaclasse(oBrw1,oBrw2)
? oBrw1:nColSel return the number of column selected
RETURN NIL
It run ok only if the user move the mouse from a record to another ,
If the user move the mouse from a cell to another of the same record the bchange method is not processed
how resolve it ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com