FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BtnBmp: caption position
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp: caption position
Posted: Fri Nov 18, 2005 08: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

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: BtnBmp: caption position
Posted: Fri Nov 18, 2005 08:53 AM

And what about to choose the color of the caption?

EMG

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
BtnBmp: caption position
Posted: 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

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp: caption position
Posted: Fri Nov 18, 2005 10:52 AM

Great! Thank you! :-)

And what about the position?

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp: caption position
Posted: 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

Posts: 16
Joined: Sun Oct 23, 2005 03:00 PM
BtnBmp: caption position
Posted: Sat Nov 19, 2005 04:53 AM

Dear Enrico,

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

hiong

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
BtnBmp: caption position
Posted: Sat Nov 19, 2005 11:11 AM

Thank you. I will try.

EMG

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
BtnBmp from resource
Posted: Sat Nov 19, 2005 03:03 PM

Dear All,

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

Thanks,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: BtnBmp from resource
Posted: Sat Nov 19, 2005 04:27 PM

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

EMG

Posts: 16
Joined: Sun Oct 23, 2005 03:00 PM
BtnBmp: caption position
Posted: Sat Nov 19, 2005 04:59 PM

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

hiong

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Does it support Alt+Key?
Posted: Sun Nov 20, 2005 02:42 AM

Dear EMG,

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

Kind regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Does it support Alt+Key?
Posted: Sun Nov 20, 2005 10:09 AM

It seems not, sorry.

EMG

Posts: 344
Joined: Tue Oct 11, 2005 11:33 AM
BtnBmp: caption position
Posted: 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.

Obrigado, Regards, Saludos



Rossine.



Harbour and Harbour++

Continue the discussion