get OnGetMouseMove

get OnGetMouseMove

Postby Silvio.Falconi » Wed Oct 02, 2024 10:57 am

how can i check when the mouse is inside a get control ?
i would like to call my own function
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: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: get OnGetMouseMove

Postby MaxP » Wed Oct 02, 2024 3:42 pm

Hi Silvio,

here is a sample.

Code: Select all  Expand view
#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
 


Regards
Massimo
User avatar
MaxP
 
Posts: 85
Joined: Thu Jul 12, 2007 2:02 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 60 guests