FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour how to change tsbutton bmp background color ?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM

how to change tsbutton bmp background color ?

Posted: Mon Nov 20, 2006 08:09 AM

Hi,

redefine tsbutton of odlg resource "mydllbmp" when .f.

The disabled button bmp always shows dark gray, how to change it to CLR_HGRAY ?

Best regard !

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM

how to change tsbutton bmp background color ?

Posted: Mon Nov 20, 2006 01:30 PM
Mr.ShumingWang

This is the code:

         COLORS {|oBtn|IF(oBtn:lActive,                                 ;
                       IF(oBtn:lMouseOver, nRGB(80,145,210), CLR_WHITE),;
                        CLR_GRAY ) },                                  ;
                        {|oBtn| If( oBtn:lActive,                       ;
                        {{CLR_WHITE, nRGB(80,145,210)}, 4 },            ; 
                         CLR_HGRAY ) } ;
         ACTION ( .T. )


and the result is :



Regards

- Ramesh Babu P
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM

how to change tsbutton bmp background color ?

Posted: Mon Nov 20, 2006 03:19 PM

The text color could be changed, but bmp color seems could not be changed,as a tsbutton contians text and bmp.

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 218
Joined: Fri Oct 07, 2005 01:55 AM

how to change tsbutton bmp background color ?

Posted: Tue Nov 21, 2006 02:23 AM

Hello ShumingWang,

I guess TSButton only support Text for Disable function.
You can use it below:

REDEFINE TSButton Of oDlg ;
RESOURCE "1","2","Disable bmp","4"

Regards,

Richard

Continue the discussion