Size of BMP

Post Reply
yardenmo
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Size of BMP

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
yardenmo
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
yardenmo
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Post by yardenmo »

Antonio,

Thanks.

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


Regards,
Moshe Yarden
Post Reply