Question about < oDlg:SaveToBmp( ... >

Question about < oDlg:SaveToBmp( ... >

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

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

Moved VTitle to Position 0, 0
Image

Screencapture is OK
Image

Code: Select all  Expand view

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 :lol:
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: Google [Bot] and 113 guests