FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Display bmp on window
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM

Display bmp on window

Posted: Fri Sep 14, 2007 08:32 AM
Hi,

IN FW I used

   ACTIVATE WINDOW oMenuWnd MAXIMIZED ;
   ON PAINT (PalBmpDraw( hDC, ( oMenuWnd:nbottom - oMenuWnd:ntop )-220 , ((oMenuWnd:nright)-(oMenuWnd:nleft)-(350))/2, oBmp:hBmpPal ))


to display a bmpfile in the middle at the bottom of the screen.

In FWH I get an error:
   Error description: Error BASE/1004  Message not found: TBITMAP:HBMPPAL


How can I display a bmp in FWH?

Thanks,
Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Display bmp on window

Posted: Fri Sep 14, 2007 09:23 AM

Try oBmp:hBitmap.

EMG

Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM

Display bmp on window

Posted: Fri Sep 14, 2007 09:44 AM

Enrico,

oBmp:hBitmap works!!

Thanks,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion