BtnBmp: caption position

BtnBmp: caption position

Postby Enrico Maria Giordano » Fri Nov 18, 2005 8:27 am

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: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: BtnBmp: caption position

Postby Enrico Maria Giordano » Fri Nov 18, 2005 8:53 am

And what about to choose the color of the caption?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Maurizio » Fri Nov 18, 2005 10:39 am

@ 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
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Enrico Maria Giordano » Fri Nov 18, 2005 10:52 am

Great! Thank you! :-)

And what about the position?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Enrico Maria Giordano » Fri Nov 18, 2005 11:03 am

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
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby yam_hiong » Sat Nov 19, 2005 4:53 am

Dear Enrico,

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

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

Postby Enrico Maria Giordano » Sat Nov 19, 2005 11:11 am

Thank you. I will try.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

BtnBmp from resource

Postby dutch » Sat Nov 19, 2005 3:03 pm

Dear All,

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

Thanks,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: BtnBmp from resource

Postby Enrico Maria Giordano » Sat Nov 19, 2005 4:27 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby yam_hiong » Sat Nov 19, 2005 4:59 pm

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

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

Does it support Alt+Key?

Postby dutch » Sun Nov 20, 2005 2:42 am

Dear EMG,

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

Kind regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Postby Rossine » Sun Nov 20, 2005 12:17 pm

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.
Rossine
 
Posts: 344
Joined: Tue Oct 11, 2005 11:33 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 68 guests