I have some button at top of a foxpro 2.6 screen (next, previous, quit etc ...), I want open a window if the user click on my screen (and data in window depend of location of click ...) I write
ON KEY LABEL MOUSE DO Myproc
But my buttons at top of screen don't works ...
I try, at end of procedure Myproc
KEYBOARD '{LEFTMOUSE}'
But this code don't work
I think write :
PROCEDURE Myproc
IF BETWEEN(MROW()1,3) && button's row
DO CASE
CASE BETWEEN(MCOL(),3,6) && button one
DO Button_one_proc
CASE BETWEEN(MCOL(),7,10) && button two
DO Button_two_proc
ETC. ...
ENDCASE
ELSE && body's row
... open data window
ENDIF
Someone have other idea ?
Thank you by advance
ON KEY LABEL MOUSE DO Myproc
But my buttons at top of screen don't works ...
I try, at end of procedure Myproc
KEYBOARD '{LEFTMOUSE}'
But this code don't work
I think write :
PROCEDURE Myproc
IF BETWEEN(MROW()1,3) && button's row
DO CASE
CASE BETWEEN(MCOL(),3,6) && button one
DO Button_one_proc
CASE BETWEEN(MCOL(),7,10) && button two
DO Button_two_proc
ETC. ...
ENDCASE
ELSE && body's row
... open data window
ENDIF
Someone have other idea ?
Thank you by advance