Please try this little program
test #1:
I run the program and close the window:
the result is 100 100 401 501
test #2:
I run the program, I move the window in another place on my desktop, then I close the window:
the result is 100 100 401 500 (the same result of first test
test #3:
I run the program, I move the windows changing dimension on my desktop , then I close the window( after this movements the window is roughly at the same position of test #2:
the result is 331 669 597 1083
The question is: If I only move a window without changing dimensions the four parameters
? oMain:nTop, oMain:nLeft, oMain:nBottom, oMain:nRight do not change!
Is it normal?
Many thanks
Marco
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oMain
LOCAL nTw := 100 , nLw := 100 , nBw := 400 , nRw := 500
DEFINE WINDOW oMain FROM nTw , nLw TO nBw , nRw PIXEL
ACTIVATE WINDOW oMain
? STR( oMain:nTop ,4 ) + STR( oMain:nLeft ,4 ) + STR( oMain:nBottom ,4 ) + STR( oMain:nRight ,4 )
RETURN NIL
#include "fivewin.ch"
FUNCTION MAIN()
LOCAL oMain
LOCAL nTw := 100 , nLw := 100 , nBw := 400 , nRw := 500
DEFINE WINDOW oMain FROM nTw , nLw TO nBw , nRw PIXEL
ACTIVATE WINDOW oMain
? STR( oMain:nTop ,4 ) + STR( oMain:nLeft ,4 ) + STR( oMain:nBottom ,4 ) + STR( oMain:nRight ,4 )
RETURN NIL