BtnBmp: caption position

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

BtnBmp: caption position

Post by Enrico Maria Giordano »

Dear friends, is it possible to put the BTNBMP caption to the top of the button? It seems that it is only go centered.

EMG
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: BtnBmp: caption position

Post by Enrico Maria Giordano »

And what about to choose the color of the caption?

EMG
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

@ 1,2 BTNBMP oBtn ;
PROMPT "Text" TOP ADJUST OF oDlg ;
SIZE 100 , 100 ;
FILE "BTN.BMP" NOBORDER ;
FONT oFont1 UPDATE

oBtn:SetColor( CLR_HBLUE ,CLR_WHITE)
oBtn:nClrText( CLR_HRED )
oBtn:nClrText( CLR_HRED )

Regards MAurizio
www.nipeservice.com
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

Post by Enrico Maria Giordano »

Great! Thank you! :-)

And what about the position?

EMG
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

Post by Enrico Maria Giordano »

Ops, I missed the TOP clause. But the result is not so nice. It seems that the bitmap is shifted to the specified direction and the caption is outside the bitmap itself... :-(

EMG
User avatar
yam_hiong
Posts: 16
Joined: Sun Oct 23, 2005 3:00 pm
Location: Pontianak - Indonesia
Contact:

Post by yam_hiong »

Dear Enrico,

have you try tbuttonbmp (new class)?
this class also support theme on winxp. :)
i'm using fwh+xharbour.

hiong
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

Post by Enrico Maria Giordano »

Thank you. I will try.

EMG
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

BtnBmp from resource

Post by dutch »

Dear All,

May I have an example for BtnBmp from resource workshop? Is TButtonBmp support Clipper/FW?

Thanks,
Dutch
User avatar
Enrico Maria Giordano
Posts: 8737
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: BtnBmp from resource

Post by Enrico Maria Giordano »

CONTROL "", 301, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 5, 5, 97, 43

EMG
User avatar
yam_hiong
Posts: 16
Joined: Sun Oct 23, 2005 3:00 pm
Location: Pontianak - Indonesia
Contact:

Post by yam_hiong »

AFAIK, ButtonBMP available for 32bits only since its support themes in WinXP.
CMIIW.

hiong
User avatar
dutch
Posts: 1554
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Does it support Alt+Key?

Post by dutch »

Dear EMG,

Does it support Alt+Key (Alt+S for example)?

Kind regards,
Dutch
Rossine
Posts: 344
Joined: Tue Oct 11, 2005 11:33 am

Post by Rossine »

SET ENGLISH ON

(Using a translating) Hello Personal,

I did some changes in the class buttonbmp for do this and other things more. If they will want to is alone speak me :)

Regards,

Rossine.

SET PORTUGUESE ON

Olá Pessoal,

Fiz algumas mudanças na classe buttonbmp para fazer isto e outras coisas mais. Se quiserem é só me falar :)

Abraços,

Rossine.
Post Reply