Errors in window.prg ?
Posted: Mon Aug 28, 2006 11:19 am
Hello
Trying to use ON MOVE , i noticed :
1) oDlg:bMoved is executed with nRow,ncol , so the preprocessor should be (fivewin.ch and dialog.ch):
<oWnd>:bMoved [ := \{ | nRow,nCol | <uMove> \} ], ;
2) Comparing two methods :
case nMsg == WM_LBUTTONDOWN
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ),;
METHOD LButtonDown( nRow, nCol, nKeyFlags )
case nMsg == WM_MOVE
return ::Moved( nLoWord( nLParam ), nHiWord( nLParam ) )
METHOD Moved( nRow, nCol ) INLINE ;
Which is nRow ? nLoWord(nLParam) or nHiWord(nLParam)
Trying to use this method gives for nrow always 0 , nCol is updated
3) Using oDlg:Move(0,0,......)
? oDlg:nTop , oDlg:nLeft gives -130 and -104 . Why ?????
4) As mentioned earlyer : tgroup can't be used with a bitmap in his area , nor with ON PAINT WbdBox(.....) , they are erased
When the background color is the same from the window , there is no need to repaint the entire area !
Frank
Trying to use ON MOVE , i noticed :
1) oDlg:bMoved is executed with nRow,ncol , so the preprocessor should be (fivewin.ch and dialog.ch):
<oWnd>:bMoved [ := \{ | nRow,nCol | <uMove> \} ], ;
2) Comparing two methods :
case nMsg == WM_LBUTTONDOWN
return ::LButtonDown( nHiWord( nLParam ), nLoWord( nLParam ),;
METHOD LButtonDown( nRow, nCol, nKeyFlags )
case nMsg == WM_MOVE
return ::Moved( nLoWord( nLParam ), nHiWord( nLParam ) )
METHOD Moved( nRow, nCol ) INLINE ;
Which is nRow ? nLoWord(nLParam) or nHiWord(nLParam)
Trying to use this method gives for nrow always 0 , nCol is updated
3) Using oDlg:Move(0,0,......)
? oDlg:nTop , oDlg:nLeft gives -130 and -104 . Why ?????
4) As mentioned earlyer : tgroup can't be used with a bitmap in his area , nor with ON PAINT WbdBox(.....) , they are erased
When the background color is the same from the window , there is no need to repaint the entire area !
Frank