FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour button(btnbmp) of buttonbar disable caption color fixed
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
button(btnbmp) of buttonbar disable caption color fixed
Posted: Mon Dec 03, 2007 07:35 AM

METHOD Paint() CLASS TBtnBmp

...

if ! Empty( ::cCaption )
nClr = If( IsWindowEnabled( ::hWnd ), ::nClrText, CLR_HGRAY )
SetTextColor( ::hDC, nClr ) // add the line ,show disable button ccaption/text color
nTop = 2 * ( ::nHeight / 3 ) + If( ::lPressed, 1, 0 ) + If( At( CRLF, ::cCaption ) == 0, 5, 0 )
SetBkMode( ::hDC, 1 )

...

Enjoy this.

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
button(btnbmp) of buttonbar disable caption color fixed
Posted: Mon Dec 03, 2007 09:43 AM

Shuming,

Thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion