Antonio,
I'm using it to autosize a dialog, and move it into the middle of the main window (oMenuWnd).
.....
.....
ACTIVATE DIALOG oDlg CENTERED valid mbrowseexit() on init msize(oDlg,svGetlist,vWBreedte)
.....
RETURN
FUNCTION msize(oDlg,svGetlist,vWBreedte)
  local vhoogte  := oMenuWnd:nHeight - oDlg:nHeight - 8 -48
  vwbreedte = min(vwbreedte,oMenuWnd:nWidth-60)
  ........
  oDlg:nWidth  = vWBreedte + 68
  oDlg:move(oMenuWnd:nTop+4+24+oMenuWnd:GetRect()[2],(oMenuWnd:nWidth/2)-((vWBreedte+68)/2)+oMenuWnd:GetRect()[3])
  ........
RETURN
Perhaps there is an easyer way to center, and resize the dialog.
vwbreedte is the width op the dialog. Then there is cheched if it is not to wide...
Then the dialog is centered....