xBrowse Melhoria FOOTER.

xBrowse Melhoria FOOTER.

Postby MGA » Mon Jul 07, 2014 2:20 pm

DATA lFootAlignBtn AS LOGICAL INIT .f. // Usado para alinhar o rodapé quando houver um botão (EDIT_GET_BUTTON)

METHOD PaintFooter( nRow, nCol, nHeight, lInvert ) CLASS TXBrwColumn
...
else
if SetAlpha() .and. aBitmap[ BITMAP_ALPHA ]
ABPaint( hDC, nBmpCol, nBmpRow, aBitmap[ BITMAP_HANDLE ], ::nAlphaLevelFooter )
else

DEFAULT aBitmap[ BITMAP_ZEROCLR ] := GetZeroZeroClr( hDC, aBitmap[ BITMAP_HANDLE ] )
SetBkColor( hDC, nRGB( 255, 255, 255 ) )
TransBmp( aBitmap[ BITMAP_HANDLE ], aBitmap[ BITMAP_WIDTH ], aBitmap[ BITMAP_HEIGHT ],;
aBitmap[ BITMAP_ZEROCLR ], hDC, nBmpCol, nBmpRow, nBmpWidth( aBitmap[ BITMAP_HANDLE ] ),;
nBmpHeight( aBitmap[ BITMAP_HANDLE ] ) )
endif
endif


elseif ::lFootAlignBtn .and. ;
::nEditType == EDIT_GET_BUTTON .and. ;
::nFootStrAlign == AL_RIGHT .and. ;
!Empty( aBitmap := ::aBitmap( ::nBtnBmp ) )
nWidth -= ( aBitmap[ BITMAP_WIDTH ] + 6 )

endif

if Empty( cFooter )
::oBrw:ReleaseDC()
return nil
endif
...
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 28 guests