Hi,
Is it still required to destroy Font object to release memory occupied by it ? I am using Jun-2005 build.
TIA
Milan.
if ::oFont == nil
::oFont := TFont():New()
::oFont:hFont := GetStockObject( DEFAULT_GUI_FONT )
endif
DEFINE FONT oFont NAME ... SIZE ..., ...
oFont:End()
METHOD paint()
do while .not. EOF()
IF PLAN_DB->jahrgang4 = "MELD"
::paintChartFont := ::oFont
else
::paintChartFont := ::planFont
ENDIF
::PaintChart( )
skip
ENDDO
return nil
//----------------------------------------------------------------------------//
METHOD PaintChart()
hOldFont := SelectObject( ::oWnd:hDC, ::paintChartFont:hFont )
DrawText( ::oWnd:hDC, cChartCaption,{ nCurRow - 6 ,;
StartPX + nTemp ,;
nCurRow + ::nRowHeight ,;
StartPX + nDurationPX + ::nColWidth/2 - 2 }, nStyle )
SelectObject( ::oWnd:hDC, hOldFont )
DeleteObject( hOldFont )
return nil
//----------------------------------------------------------------------------//
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 91 guests