by dbzap » Wed Apr 12, 2006 5:47 pm
Antonio, i modify the testmous.prg, ( i need a dialog )
But doens't work
Any Worng
(Antonio, modifique el codigo, (necesito un dialogo ), pero no funciono. )
// Testing the Mouse events
#include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
* DEFINE WINDOW oWnd TITLE "Testing the Mouse"
DEFINE DIALOG oWnd FROM 5,10 TO 24, 55 TITLE "dialog"
oWnd:bLClicked = { | nRow, nCol, nFlags | oWnd:Say( 2, 2, "oWnd:bLClicked" ) }
oWnd:bLButtonUp = { | nRow, nCol, nFl8ags | oWnd:Say( 3, 2, "LButtonUp " ) }
oWnd:bMButtonDown = { | nRow, nCol, nFlags | oWnd:Say( 4, 2, "MButtonDown" ) }
oWnd:bMButtonUp = { | nRow, nCol, nFl8ags | oWnd:Say( 5, 2, "MButtonUp " ) }
oWnd:bRClicked = { | nRow, nCol, nFlags | oWnd:Say( 6, 2, "RButtonDown" ) }
oWnd:bRButtonUp = { | nRow, nCol, nFlags | oWnd:Say( 7, 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 DIALOG oWnd
*ACTIVATE WINDOW oWnd
return nil