hi,
i got Error "wrong Format" when try using 24Bit BMP as Resource
than i have convert to 4Bit and that work ... but no "Transparency" in MENU ...
so what Format can i use in *.RC
NamePng RCDATA "myfileimage.png"
nageswaragunupudi wrote:You should not have problems with 24 bit bitmaps.
nageswaragunupudi wrote:Yes, for 32 bit alpha bitmaps and other formats (jpg,png,etc) use RCDATA
i have take Bitmap from c:\fwh\bitmaps\32x32\ but still got "Format" Error ...
PHONE RCDATA "c:\fwh\bitmaps\32x32\phone.bmp"
#include "fivewin.ch"
function Main()
local oWnd, oBar
DEFINE WINDOW oWnd
// 24 Bit
DEFINE BUTTONBAR oBar OF oWnd SIZE 64,64 2007 HEIGHT 96
SET MESSAGE OF oWnd TO "bitmaps" 2007
DEFINE BUTTON OF oBar RESOURCE "CASCADE" GROUP LABEL "24 Bits"
DEFINE BUTTON OF oBar RESOURCE "ATTACH"
DEFINE BUTTON OF oBar RESOURCE "COPY"
// 32 Bit Alpha bitmaps
DEFINE BUTTON OF oBar RESOURCE "DOWN" GROUP LABEL "32 Bit Alpha"
DEFINE BUTTON OF oBar RESOURCE "PHONE"
DEFINE BUTTON OF oBar RESOURCE "POCKETPC"
oWnd:nWidth := 500
oWnd:nHeight := 700
ACTIVATE WINDOW oWnd CENTERED ;
ON PAINT oWnd:DrawImage( "OLGA", oWnd:GetCliAreaRect():aRect )
return nil
CASCADE BITMAP "c:\fwh\bitmaps\32x32\cascade.bmp"
ATTACH BITMAP "c:\fwh\bitmaps\32x32\attach.bmp"
COPY BITMAP "c:\fwh\bitmaps\32x32\copy.bmp"
DOWN RCDATA "c:\fwh\bitmaps\32x32\down.bmp"
POCKETPC RCDATA "c:\fwh\bitmaps\32x32\pocketpc.bmp"
PHONE RCDATA "c:\fwh\bitmaps\32x32\phone.bmp"
OLGA RCDATA "c:\fwh\bitmaps\olga1.jpg"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 43 guests