Show a message with Xbrowse

Show a message with Xbrowse

Postby Silvio.Falconi » Fri Oct 09, 2015 10:56 am

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6832
Joined: Thu Oct 18, 2012 7:17 pm

Re: Show a message with Xbrowse

Postby FranciscoA » Fri Oct 09, 2015 12:44 pm

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
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2112
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Show a message with Xbrowse

Postby Silvio.Falconi » Fri Oct 09, 2015 4:18 pm

THANKS but it run sometimes
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6832
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 17 guests