Page 1 of 1

Show a message with Xbrowse

PostPosted: Fri Oct 09, 2015 10:56 am
by Silvio.Falconi
I have two Browse
Browse1 and Browse2 as you can see on this picture

Image

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 ?

Re: Show a message with Xbrowse

PostPosted: Fri Oct 09, 2015 12:44 pm
by FranciscoA
Silvio.Falconi wrote:If the user move the mouse from a cell to another of the same record the bchange method is not processed
how resolve it ?


Try with:
oBrw :lColChangeNotify := .t. // bChange evalua cambio de columna y permite tomar una accion

Re: Show a message with Xbrowse

PostPosted: Fri Oct 09, 2015 4:18 pm
by Silvio.Falconi
THANKS but it run sometimes