Bitmaps

Bitmaps

Postby marca » 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
marca
 
Posts: 117
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Re: Bitmaps

Postby Enrico Maria Giordano » Sat Sep 27, 2008 10:31 am

This is the correct way, assuming hBmp is the name of your array of bitmaps handles:

Code: Select all  Expand view
AEval( hBmp, { | hBmp | DeleteObject( hBmp ) } )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby marca » Sat Sep 27, 2008 1:20 pm

Ok Enrico tanks
Marcelo Ferro da Silveira
Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8
SqlLib /xMate/WS
marca
 
Posts: 117
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests