Page 1 of 1
BtnBmp: caption position
Posted: Fri Nov 18, 2005 8:27 am
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
Re: BtnBmp: caption position
Posted: Fri Nov 18, 2005 8:53 am
by Enrico Maria Giordano
And what about to choose the color of the caption?
EMG
Posted: Fri Nov 18, 2005 10:39 am
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
Posted: Fri Nov 18, 2005 10:52 am
by Enrico Maria Giordano
Great! Thank you!
And what about the position?
EMG
Posted: Fri Nov 18, 2005 11:03 am
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
Posted: Sat Nov 19, 2005 4:53 am
by yam_hiong
Dear Enrico,
have you try tbuttonbmp (new class)?
this class also support theme on winxp.
i'm using fwh+xharbour.
hiong
Posted: Sat Nov 19, 2005 11:11 am
by Enrico Maria Giordano
Thank you. I will try.
EMG
BtnBmp from resource
Posted: Sat Nov 19, 2005 3:03 pm
by dutch
Dear All,
May I have an example for BtnBmp from resource workshop? Is TButtonBmp support Clipper/FW?
Thanks,
Dutch
Re: BtnBmp from resource
Posted: Sat Nov 19, 2005 4:27 pm
by Enrico Maria Giordano
CONTROL "", 301, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 5, 5, 97, 43
EMG
Posted: Sat Nov 19, 2005 4:59 pm
by yam_hiong
AFAIK, ButtonBMP available for 32bits only since its support themes in WinXP.
CMIIW.
hiong
Does it support Alt+Key?
Posted: Sun Nov 20, 2005 2:42 am
by dutch
Dear EMG,
Does it support Alt+Key (Alt+S for example)?
Kind regards,
Dutch
Re: Does it support Alt+Key?
Posted: Sun Nov 20, 2005 10:09 am
by Enrico Maria Giordano
It seems not, sorry.
EMG
Posted: Sun Nov 20, 2005 12:17 pm
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.