New SkinButtons() in FWH 9.09

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

New SkinButtons() in FWH 9.09

Post by Antonio Linares »

New function SkinButtons() to change the look of all your standard windows buttons, in your application, with just a function call:
Image
You can also set the colors that you want for normal, focus and pressed states, even at runtime!:

Code: Select all

   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()
 
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: New SkinButtons() in FWH 9.09

Post by lailton.webmaster »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

Skins support for Class TButtonBmp :-)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: New SkinButtons() in FWH 9.09

Post by dutch »

Dear Antonio,

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

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

Dutch,

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

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

Both support accelerators.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: New SkinButtons() in FWH 9.09

Post by fraxzi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: New SkinButtons() in FWH 9.09

Post by fraxzi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: New SkinButtons() in FWH 9.09

Post by Antonio Linares »

Frances has kindly updated the Class TSkinButton to support background colors for disabled buttons :-)

Image

Next FWH 10.5 will include it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
miragerr
Posts: 140
Joined: Tue Oct 11, 2005 2:36 am
Location: Brasil

Re: New SkinButtons() in FWH 9.09

Post by miragerr »

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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: New SkinButtons() in FWH 9.09

Post by fraxzi »

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: Select all

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: Select all

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
Post Reply