TTitle from RESOURCE a Image-problem ?
Posted: Fri Apr 27, 2012 6:06 pm
Hello,
It seems, it is not possible, to add a image to a TTitle from resource.
using TTitles from Resource, I getting a error on this line :
650 DEFAULT nRow := ::nHeight / if( ::oWnd:ClassName() == "TWINDOW", 2, 1 ) - nBmpHeight( hBmp ) / 2 - If( ::lBase, 3, 0 )
Error description: Error BASE/1081 Argument error: +
Args:
[ 1] = N 10
[ 2] = U
Stack Calls
===========
Called from: .\TTitle.PRG => TTITLE:LOADBITMAPS( 650 )
from code, there is no problem.
The Test :
REDEFINE TITLE oMTitle1 ID 110 TEXT "Test" OF oDlg1 SHADOWSIZE 0
oMTitle1:lTransparent := .F.
oMTitle1:lBorder := .F.
oMTitle1:aGrdBack := { { 1, nDColorF, nDColorF }, ;
{ 1, nDColorF, nDColorF } }
@ 10, 10 TITLEIMG OF oMTitle1 BITMAP c_path + "\Images\" + cDImage TRANSPARENT ;
ACTION MsgAlert( "Button with Action","Attention" )
Best Regards
Uwe
It seems, it is not possible, to add a image to a TTitle from resource.
using TTitles from Resource, I getting a error on this line :
650 DEFAULT nRow := ::nHeight / if( ::oWnd:ClassName() == "TWINDOW", 2, 1 ) - nBmpHeight( hBmp ) / 2 - If( ::lBase, 3, 0 )
Error description: Error BASE/1081 Argument error: +
Args:
[ 1] = N 10
[ 2] = U
Stack Calls
===========
Called from: .\TTitle.PRG => TTITLE:LOADBITMAPS( 650 )
from code, there is no problem.
The Test :
REDEFINE TITLE oMTitle1 ID 110 TEXT "Test" OF oDlg1 SHADOWSIZE 0
oMTitle1:lTransparent := .F.
oMTitle1:lBorder := .F.
oMTitle1:aGrdBack := { { 1, nDColorF, nDColorF }, ;
{ 1, nDColorF, nDColorF } }
@ 10, 10 TITLEIMG OF oMTitle1 BITMAP c_path + "\Images\" + cDImage TRANSPARENT ;
ACTION MsgAlert( "Button with Action","Attention" )
Best Regards
Uwe