FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Size of BMP
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
Size of BMP
Posted: Mon Sep 08, 2008 02:37 PM

Hi,

I'm trying to create BMPs to be used as in your sample: Clients.

When I call BTNBMP NAME "client", I can see it fine. But, when I'm trying to use another, self created, BMP I can't see it. I'm sure that the reason is the size of the BMP.

How can I tell what size the BMP should be in order to be seen?
How can I change its size to a needed size?

I've used Pelles C as well, and managed to create BMP, but still unable to see it because of the size.

Thanks,
Moshe Yarden

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Size of BMP
Posted: Mon Sep 08, 2008 03:13 PM

Moshe,

There is no any size limitation for BMPs.

Please review samples\Tutor11.prg. You can use any BMP size from it.

Are you able to open and review your BMP using mspaint or the explorer ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
Size of BMP
Posted: Wed Sep 10, 2008 08:05 AM

Antonio,

Thanks. I have looked at samples\Tutor11.prg. I'll try it.

I meant that when I need to add small bmp (like client.bmp) in the upper menu, it needs to fit.

About dialogs: in order to use colors (foreground / background) in dialogs created with Pellese C: I didn't find a way to do it there. Do I choose colors in the source (prg)?

Regards,
Moshe

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Size of BMP
Posted: Wed Sep 10, 2008 08:26 AM

Moshe,

> Do I choose colors in the source (prg)?

Yes, you select them from the PRG:

Using dbase style strings:
DEFINE DIALOG oDlg RESOURCE "Test" COLOR "W/B"

Using RGB colors:
DEFINE DIALOG oDlg RESOURCE "Test" COLOR nRGB( 255, 255, 255 ), nRGB( 0, 255, 0 )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 33
Joined: Tue Aug 12, 2008 07:08 AM
Size of BMP
Posted: Mon Sep 15, 2008 11:01 AM

Antonio,

Thanks.

The programing with FWPPC: It is getting better all the time.

Regards,
Moshe Yarden

Continue the discussion