Page 1 of 1

Size of BMP

Posted: Mon Sep 08, 2008 2:37 pm
by yardenmo
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

Posted: Mon Sep 08, 2008 3:13 pm
by Antonio Linares
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 ?

Posted: Wed Sep 10, 2008 8:05 am
by yardenmo
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

Posted: Wed Sep 10, 2008 8:26 am
by Antonio Linares
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 )

Posted: Mon Sep 15, 2008 11:01 am
by yardenmo
Antonio,

Thanks.

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


Regards,
Moshe Yarden