Hello,
I need Mouse-events on a MDI-frame.
Any Sample ?
The Sample works only MODAL !!!
// Testing the Mouse events
#include "FiveWin.ch"
static oWnd
function Main()
DEFINE WINDOW oWnd TITLE "Testing the Mouse" // ===>>> MDI needed !!!
oWnd:bLClicked = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "LButtonDown" ) }
oWnd:bLButtonUp = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "LButtonUp " ) }
oWnd:bMButtonDown = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "MButtonDown" ) }
oWnd:bMButtonUp = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "MButtonUp " ) }
oWnd:bRClicked = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "RButtonDown" ) }
oWnd:bRButtonUp = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "RButtonUp " ) }
oWnd:bMMoved = { | nRow, nCol, nFlags | MsgBeep() }
oWnd:bLDblClick = { | nRow, nCol, nFlags | MsgInfo( "Left Doble Click" ) }
SET MESSAGE OF oWnd TO "Press any mouse button" CENTERED
ACTIVATE WINDOW oWnd
return nil
Best Regards
Uwe