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: 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