|
From: Andreas H. <ah...@us...> - 2004-12-29 22:48:59
|
Update of /cvsroot/jvcl/dev/JVCL3/run In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18152/run Modified Files: JvTabBar.pas Log Message: Fixed the disabled image bug again. Index: JvTabBar.pas =================================================================== RCS file: /cvsroot/jvcl/dev/JVCL3/run/JvTabBar.pas,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** JvTabBar.pas 28 Dec 2004 18:03:56 -0000 1.7 --- JvTabBar.pas 29 Dec 2004 22:48:34 -0000 1.8 *************** *** 1639,1647 **** InflateRect(R, -1, -1); - if Tab.Enabled then - Font.Assign(Self.Font) - else - Font.Assign(Self.DisabledFont); - if not Tab.TabBar.CloseButton then Inc(R.Left, 2); --- 1639,1642 ---- *************** *** 1654,1657 **** --- 1649,1657 ---- end; + if Tab.Enabled then + Font.Assign(Self.Font) + else + Font.Assign(Self.DisabledFont); + Brush.Style := bsClear; TextRect(R, R.Left + 3, R.Top + 3, Tab.Caption); |