Page 1 of 1

ON MOVE from dialog or window

PostPosted: Thu Aug 31, 2006 2:25 pm
by Frank Demont
Hello,

Trying to use ON MOVE , you can try
Code: Select all  Expand view
# include "fivewin.ch"
FUNC MAIN
LOCAL oWnd
DEFINE WINDOW oWnd FROM 10,10 TO 20,70
SET MESSAGE OF oWnd TO "TEST ON MOVE" CLOCK DATE KEYBOARD NOINSET
oWnd:bMoved := {|nRow,nCol|oWnd:setMsg(LTRIM(STR(nRow)) + " , " + LTRIM(STR(nCol)))}
ACTIVATE DIALOG oWnd
RETURN


Notes :

1) The result is WRONG , nRow is always 0

2) Trying to use the ON MOVE clause can never do the same , nRow or nCol can't be used.

It is only possible when fivewin.ch and dialog.ch are changed :
<oWnd>:bMoved [ := \{ | nRow,nCol | <uMove> \} ], ;

3) I am convinced that this behaviour is a ERROR , i reported it already
a few days ago . Why no response ????????


Frank

Re: ON MOVE from dialog or window

PostPosted: Thu Aug 31, 2006 3:24 pm
by Enrico Maria Giordano
I confirm the problem.

EMG

PostPosted: Thu Aug 31, 2006 8:44 pm
by Patricio Avalos Aguirre
I confirm the problem.

FWH 2.6, xHarbour 0.99.5, Borland 5.5

Saludos
Patricio