FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about < oDlg:SaveToBmp( ... >
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Question about < oDlg:SaveToBmp( ... >
Posted: Thu Mar 04, 2010 12:25 PM
Hello,

I found a Solution for my Problem, to capture only a VTitle.
A small Button is added to the lower/right VTitle-Corner of the Preview.
No extra Screenshot-Appl. is needed, to get the Images for the Preview-Browser.

I noticed, the contents of the captured Dialog uses the Cor's of the Main-Window.
I can move the VTitle to Position 0, 0 and it is OK, but is there maybe another Solution ?

A Position with defined Distance TOP/LEFT from main-Window


The Screencapture-contents uses 0, 0 for TOP/LEFT from the Mainwindow


Moved VTitle to Position 0, 0


Screencapture is OK


Code (fw): Select all Collapse
IF B_BACKGRD = 2 // Vtitle with Dialog-Size only with End-Button
    @  B_HEIGHT  - 65, B_WIDTH - 55 TITLEIMG OF oBar1 ;
    BITMAP c_path + "\SYSTEM\DELETE1.BMP" ;
    SIZE 30, 30 TRANSPARENT ANIMA  ;
    ACTION ( oDlg5:End() ) 
ENDIF
IF B_BACKGRD = 3 // VTitle with no Border and EndButton with Capture-Function
    @  B_HEIGHT  - 40, B_WIDTH - 40 TITLEIMG OF oBar1 ;
    BITMAP c_path + "\SYSTEM\DELETE1.BMP" ;
    SIZE 30, 30 TRANSPARENT ANIMA  ;
    ACTION ( oDlg5:SaveToBmp( c_path + c_SET + "\P_000.BMP" ), oDlg5:End() ) 
ENDIF


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.

Continue the discussion