New SkinButtons() in FWH 9.09

New SkinButtons() in FWH 9.09

Postby Antonio Linares » 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:
Image
You can also set the colors that you want for normal, focus and pressed states, even at runtime!:
Code: Select all  Expand view

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

Re: New SkinButtons() in FWH 9.09

Postby lailton.webmaster » Tue Sep 08, 2009 3: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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: New SkinButtons() in FWH 9.09

Postby Antonio Linares » Tue Sep 08, 2009 10:49 pm

Image
regards, saludos

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

Re: New SkinButtons() in FWH 9.09

Postby Antonio Linares » Fri Sep 11, 2009 5:00 pm

Skins support for Class TButtonBmp :-)

Image
regards, saludos

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

Re: New SkinButtons() in FWH 9.09

Postby dutch » Sat Sep 12, 2009 4:23 am

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
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: New SkinButtons() in FWH 9.09

Postby Antonio Linares » Sat Sep 12, 2009 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41315
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New SkinButtons() in FWH 9.09

Postby fraxzi » Fri May 14, 2010 1: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: New SkinButtons() in FWH 9.09

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

Re: New SkinButtons() in FWH 9.09

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

Re: New SkinButtons() in FWH 9.09

Postby Antonio Linares » Sat May 15, 2010 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41315
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New SkinButtons() in FWH 9.09

Postby Antonio Linares » Sat May 15, 2010 7:52 pm

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

Re: New SkinButtons() in FWH 9.09

Postby miragerr » 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
User avatar
miragerr
 
Posts: 140
Joined: Tue Oct 11, 2005 2:36 am
Location: Brasil

Re: New SkinButtons() in FWH 9.09

Postby fraxzi » Mon May 17, 2010 1: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: Select all  Expand view
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  Expand view

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 83 guests