[Plib-cvs] plib/src/pui puButton.cxx,1.22,1.23
Brought to you by:
sjbaker
From: John F. F. <fa...@us...> - 2006-01-05 21:33:11
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4967 Modified Files: puButton.cxx Log Message: Drawing disabled menu buttons as truly greyed-out (e-mail from Melchior Franz, 12/6/05, 6:59 AM) Index: puButton.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puButton.cxx,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- puButton.cxx 6 May 2005 18:31:11 -0000 1.22 +++ puButton.cxx 5 Jan 2006 21:32:59 -0000 1.23 @@ -39,7 +39,8 @@ { if ( parent && ( ( parent->getType() & PUCLASS_POPUPMENU ) || ( parent->getType() & PUCLASS_MENUBAR ) ) ) - abox.draw ( dx, dy, PUSTYLE_SMALL_SHADED, colour, isReturnDefault(), 2 ) ; + abox.draw ( dx, dy, active ? PUSTYLE_SMALL_SHADED : PUSTYLE_PLAIN, colour, + isReturnDefault(), active ? 2 : 0 ) ; else abox.draw ( dx, dy, -style, colour, isReturnDefault(), border_thickness ) ; } |