FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bitmaps
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Bitmaps
Posted: Fri Sep 26, 2008 10:07 PM

Hello to all

  hBmp    := { ReadBitmap( 0, oPub:wPathBmp + "ABERTO.BMP"  ),;
                     ReadBitmap( 0, oPub:wPathBmp + "BAIXADO.BMP" ),;
                     ReadBitmap( 0, oPub:wPathBmp + "DEVOLV.BMP"  ),;
                     ReadBitmap( 0, oPub:wPathBmp + "PENDE.BMP"   ) }

Which of the classes would the correct be to turn off the created bmps in the way above?

DeleteObject( hBmp )
or
ReleaseDC( hBmp )
or
AEval( aHBitmaps, { | hBmp | DeleteObject( hBmp ) } )

Marcelo Ferro da Silveira

Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8

SqlLib /xMate/WS
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bitmaps
Posted: Sat Sep 27, 2008 10:31 AM
This is the correct way, assuming hBmp is the name of your array of bitmaps handles:

AEval( hBmp, { | hBmp | DeleteObject( hBmp ) } )


EMG
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Bitmaps
Posted: Sat Sep 27, 2008 01:20 PM

Ok Enrico tanks

Marcelo Ferro da Silveira

Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8

SqlLib /xMate/WS

Continue the discussion