by ukoenig » Sun Jul 01, 2012 12:57 pm
Enrico,
I think it is the only way how it works.
Check the mouseclick-area ( tested ) :
- Code: Select all Expand view
FUNCTION D_CODE()
LOCAL oDlg, oGrp
DEFINE DIALOG oDlg SIZE 800, 600
@ 50, 50 GROUP oGrp TO 200, 300 PIXEL ;
PROMPT "This is a test";
oDlg:bLClicked := { |nRow,nCol| ;
IIF( nRow >= oGrp:nTop .and. nRow <= oGrp:nTop + oGrp:nHeight .and. ;
nCol >= oGrp:nLeft .and. nCol <= oGrp:nLeft + oGrp:nWidth, ;
MsgAlert( "INSIDE Group" ), MsgAlert( "OUTSIDE Group" ) ) }
oDlg:bRClicked := { |nRow,nCol| ;
IIF( nRow >= oGrp:nTop .and. nRow <= oGrp:nTop + oGrp:nHeight .and. ;
nCol >= oGrp:nLeft .and. nCol <= oGrp:nLeft + oGrp:nWidth, ;
MsgAlert( "INSIDE Group" ), MsgAlert( "OUTSIDE Group" ) ) }
ACTIVATE DIALOG oDlg CENTER
RETURN NIL
Best Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.