save a part of a dialog into a bmp

save a part of a dialog into a bmp

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: save a part of a dialog into a bmp

Postby ukoenig » 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.

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: save a part of a dialog into a bmp

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: save a part of a dialog into a bmp

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: save a part of a dialog into a bmp

Postby ukoenig » Sat Jan 17, 2015 1: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 :


Image

My original with 1:1 crop :

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: save a part of a dialog into a bmp

Postby ukoenig » Tue Jan 27, 2015 3: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 ) }

Image

Image

Image

Moving to dialog 2

Image

Image

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

Image
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests