FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New SkinButtons() in FWH 9.09
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
New SkinButtons() in FWH 9.09
Posted: Tue Sep 08, 2009 10:02 AM
New function SkinButtons() to change the look of all your standard windows buttons, in your application, with just a function call:

You can also set the colors that you want for normal, focus and pressed states, even at runtime!:
Code (fw): Select all Collapse
   SetSkinButtonsColors( 1, { { 0.33, nRGB( 167,  73, 169 ), nRGB( 253, 157, 165 ) }, ;
                              { 0.33, nRGB( 253, 157, 165 ), nRGB( 167,  73, 169 ) } },;
                         nRGB( 153, 43, 153 ), nRGB( 213, 102, 213 ) )     
   
   SkinButtons()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: New SkinButtons() in FWH 9.09
Posted: Tue Sep 08, 2009 03:12 PM

Congratulations antonio, very cool :D

You think that can make it to change color, border, style of a GET too ?

what´s you think about it ?

Thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Tue Sep 08, 2009 10:49 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Fri Sep 11, 2009 05:00 PM
Skins support for Class TButtonBmp :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: New SkinButtons() in FWH 9.09
Posted: Sat Sep 12, 2009 04:23 AM

Dear Antonio,

What is the difference between TButtonBmp() .and. TBtnBmp().
Will both support Accelerator Key?

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Sat Sep 12, 2009 06:16 AM
Dutch,

Class TBtnBmp is a FWH defined Class. It is not a standard Windows API control class:
http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_tbtnbmp

Class TButtonBmp uses the Windows standard Button Class, and paints a bitmap on top of it:
http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_tbuttonbmp

Both support accelerators.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: New SkinButtons() in FWH 9.09
Posted: Fri May 14, 2010 01:21 AM

Mr. Antonio,

using SkinButtons(), disabled text color can be defined.. How to set backgound color of disabled button?

Regards,
Frances

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Fri May 14, 2010 12:11 PM

Frances,

It is not supported in current version.

We have to modify the CLASS TSkinButton to support it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: New SkinButtons() in FWH 9.09
Posted: Sat May 15, 2010 12:24 AM
Antonio Linares wrote:Frances,

It is not supported in current version.

We have to modify the CLASS TSkinButton to support it.



Mr. Antonio,

Where can I find the .prg to modify TSkinButton.. I'm using 10.4.
I search \source\*.prg folder but not found file containing TSkinButton or the function SkinButtons().


Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Sat May 15, 2010 07:12 AM

Frances,

We have not published it yet, anyhow if you want to enhance it I send it to you by email :-)

Please send me back your proposed changes and we will publish them in next FWH 10.5, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New SkinButtons() in FWH 9.09
Posted: Sat May 15, 2010 07:52 PM
Frances has kindly updated the Class TSkinButton to support background colors for disabled buttons :-)



Next FWH 10.5 will include it
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 140
Joined: Tue Oct 11, 2005 02:36 AM
Re: New SkinButtons() in FWH 9.09
Posted: Sat May 15, 2010 10:33 PM

Ola amigos

Antonio es verificado que los TEXT del BUTTOMBMP ficam sempre centralizados não ficam a LEFT ou RIGHT

tem como corrigir isso

Fico no aguardo

Jackson Douglas C. Brito

Boa Vista - RR - Brasil

FWH 12.09 Last Build

xHarbour Free

UESTUDIO

SQLRDD
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: New SkinButtons() in FWH 9.09
Posted: Mon May 17, 2010 01:29 AM
Antonio Linares wrote:Frances has kindly updated the Class TSkinButton to support background colors for disabled buttons :-)

...

Next FWH 10.5 will include it



Dear Mr. Antonio,

Thank you for the appreciation.

Declaring the function Skinbuttons() will use the default gradient color for disabled button
Code (fw): Select all Collapse
aClrDisabled :=  { { 1/2, nRGB( 255,255,255 ),RGB(167,166,170)  },;
                   { 1/2, RGB(167,166,170), nRGB( 255,255,255 ) } }


or user can redefine their own
Code (fw): Select all Collapse
oSkinBtn := TSkinButton():New()

oSkinBtn:aClrDisabled := 'define your own gradient here'  :-)

SkinButtons( oSkinBtn )



not so much but it helps the visual with an obvious disabled button.


Best Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion