how can i check when the mouse is inside a get control ?
i would like to call my own function
get OnGetMouseMove
- Silvio.Falconi
- Posts: 7104
- Joined: Thu Oct 18, 2012 7:17 pm
get OnGetMouseMove
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
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
Re: get OnGetMouseMove
Hi Silvio,
here is a sample.
Regards
Massimo
here is a sample.
Code: Select all | Expand
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oGet, cVar := SPACE( 20 ), lPass := .F.
DEFINE DIALOG oDlg FROM 0, 0 TO 400, 500 TITLE "TEST OVER" PIXEL
oDlg:bMMoved := { | nRow, nCol, nKeyFlags | MyOverDlg( @lPass ) }
@ 14, 10 GET oGet VAR cVar OF oDlg SIZE 50, 12 PIXEL
oGet:bMMoved := { | nRow, nCol, nKeyFlags | MyOverGet( @lPass ) }
ACTIVATE DIALOG oDlg CENTER
RETURN NIL
STATIC FUNCTION MyOverDlg( lPass )
IF lPass
lPass := .F.
ENDIF
RETURN NIL
STATIC FUNCTION MyOverGet( lPass )
IF .NOT. lPass
lPass := .T.
MsgStop( "OVER" )
ENDIF
RETURN NIL
Massimo