Size of BMP

Size of BMP

Postby yardenmo » Mon Sep 08, 2008 2: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
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Postby Antonio Linares » Mon Sep 08, 2008 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby yardenmo » Wed Sep 10, 2008 8: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
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Postby Antonio Linares » Wed Sep 10, 2008 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby yardenmo » Mon Sep 15, 2008 11:01 am

Antonio,

Thanks.

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


Regards,
Moshe Yarden
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 37 guests