METHOD MouseMove( nRow, nCol, nKeyFlags ) CLASS TRBtn
...
return Super:MouseMove( nRow, nCol, nKeyFlags )
nOldClr = SetTextColor( ::hDC, ::aText[ n, TI_TEXTCLR ] )
TextOut( ::hDC,;
nRow-1, ;
nCol-1, ;
::aText[ n, TI_TEXT ], ;
Len( ::aText[ n, TI_TEXT ] ) )
SetTextColor( ::hDC, nOldClr )
@ 10, 10 TITLETEXT OF oTitle1 TEXT "FIVEWIN 9.07" FONT oFont1 /* BRUSH oBrush1 */ COLOR CLR_HRED
Marco Turco wrote:- the color clause in titletext doesn't runs
nOldClr = SetTextColor( ::hDC, ::aText[ n, TI_TEXTCLR ] )
TextOut( ::hDC,;
nRow-1, ;
nCol-1, ;
::aText[ n, TI_TEXT ], ;
Len( ::aText[ n, TI_TEXT ] ) )
SetTextColor( ::hDC, nOldClr )
Marco Turco wrote:- there is an alignment problem using rbbuttons on ttitle when the rbbutton prompt text is not present
if ! Empty( hBmp )
if Empty( cCaption )
nBmpTop = ::nHeight / 2 - nBmpHeight / 2
endif
if SetAlpha() .and. ::lAlpha
ABPaint( ::hDC, nBmpLeft, nBmpTop, hBmp, ::nAlphaLevel() )
else
nOldClr = SetBkColor( ::hDC, nRGB( 255, 255, 255 ) )
TransBmp( hBmp, nBmpWidth, nBmpHeight, nZeroZeroClr, ::hDC,;
If( ::lAdjust, 0, nBmpLeft ), ;
If( ::lAdjust, 0, nBmpTop ),;
If(::lAdjust, ::nWidth, nBmpWidth ) ,;
If( ::lAdjust, ::nHeight, nBmpHeight ) )
SetBkColor( ::hDC, nOldClr )
endif
endif
WndBox2007( ::hDC, aRect[ 1 ] + ::nXOffSetTitle + 1, ;
aRect[ 2 ] + ::nYOffSetTitle + 1, ;
aRect[ 3 ] - ::nXOffSetTitle - 1 + nAdjustShadow,;
aRect[ 4 ] - ::nYOffSetTitle - 1 + nAdjustShadow, ::nClrLine2 )
WndBox2007( ::hDC, aRect[ 1 ] + ::nXOffSetTitle, ;
aRect[ 2 ] + ::nYOffSetTitle, ;
aRect[ 3 ] - ::nXOffSetTitle - 1 + nAdjustShadow,;
aRect[ 4 ] - ::nYOffSetTitle - 1 + nAdjustShadow, ::nClrLine1 )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 41 guests