Silvio,
How show the box and move angles with mouse ?
to define a area I use
move and resize
next save the selected area of a image
1. rightclick define the area jn design-mode
2. rightclick save the image
STATIC oDlg, oGroup, nClicked := 0
oDlg:bRClicked := {| nRow, nCol | nClicked++, ;
IIF( nClicked = 1, MAKE_GROUP( nRow, nCol ), ;
MAKE_IMAGE( cImgFile ) ) }
// --------------
FUNCTION MAKE_GROUP( nRow, nCol )
// ----------------------------------------------------------------------------
// first dialog-click creates a GROUP in design-mode
// second dialog-click saves the captured area
// ----------------------------------------------------------------------------
// Default
oGroup := TGroup():New( nRow, nCol, nRow + 150, nCol + 150, "", oDlg, NIL, NIL, .T. , .T. , NIL, .T. )
oGroup:l3D := .T.
// TGroup():New( nTop, nLeft, nBottom, nRight, cLabel, oWnd, nClrText,;
// nClrPane, lPixel, lDesign, oFont, lTransparent, nWidth, nHeight )
RETURN( NIL )
// -----------
FUNCTION MAKE_IMAGE( cImgFile )
oGroup:Hide()
oDlg:SaveToBmp( cImgFile ) // Screenshot of full dialogbackground
oGroup:Show()
RETURN( NIL )
regards
Uwe