Al parecer este codigo ( blClicked referido al dialogo ) no esta funcionando en fwh27, pero en versiones anteriores si funconaba y nos permitia realizar algunas funciones.
DEFINE DIALOG oDlg RESNAME "CADENADOC" Of oWnd
odlg:blClicked := {|x,y| msginfo("hola" ) }
odlg:brclicked := {|| msginfo( "chao" ) }
ACTIVATE DIALOG.....
blClicked no nos funciona...
- Manuel Valdenebro
- Posts: 706
- Joined: Thu Oct 06, 2005 9:57 pm
- Location: Málaga-España
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: