FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour save a part of a dialog into a bmp
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

save a part of a dialog into a bmp

Posted: Fri Jan 16, 2015 11:18 AM

How I can save a section of a dialog into bmp file to send to printer ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: save a part of a dialog into a bmp

Posted: Fri Jan 16, 2015 10:55 PM
Silvio,

my solution to copy a area from a DIALOG and save as BMP,
but why You don't use a external screencapture program ?
There You can cut a area as well.



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: save a part of a dialog into a bmp

Posted: Sat Jan 17, 2015 10:00 AM
Silvio.Falconi wrote:How I can save a section of a dialog into bmp file to send to printer ?


hBmp := MakeBkBmpEx( oDlg:hWnd, nTop, nLeft, nBottom, nRight )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: save a part of a dialog into a bmp

Posted: Sat Jan 17, 2015 11:12 AM

thanks to all

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: save a part of a dialog into a bmp

Posted: Sat Jan 17, 2015 01:01 PM
Mr. Rao,

I think, this function belongs to other classes.
Using it for this solution, it doesn't work.
Just see the difference between my original and the change :

The change using MakeBkBmpEx( oDlg:hWnd, nTop, nLeft, nBottom, nRight )
The width and height is OK, but the control-sizes are changing :




My original with 1:1 crop :



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: save a part of a dialog into a bmp

Posted: Tue Jan 27, 2015 03:05 PM
A capture function with adding just one line to the dialog :
create multiple captures
possible to change the export image-format during a session
dialog-display of the capture-result

oDlg:bRClicked := {| nRow, nCol | MAKE_AREA( oDlg, cWorkFile, nTxtColor, nRow, nCol ) }







Moving to dialog 2





Counted export-files using the first 10 chars of the dialog-title

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion