BtnBmp: caption position

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
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
Maurizio
Posts: 705
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: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
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
dutch
Posts: 1395
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
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: 1395
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: 343
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