CtrlLib: DropList now displays readonly values as SColorDisabled

git-svn-id: svn://ultimatepp.org/upp/trunk@3350 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-04-17 20:05:20 +00:00
parent f4151f2667
commit d0f51114ce
2 changed files with 2 additions and 2 deletions

View file

@ -446,7 +446,7 @@ void MultiButton::Paint(Draw& w)
if(cr.left < cr.right && display) {
w.Clip(clr);
display->Paint(w, cr, v,
IsShowEnabled() ? text : SColorDisabled,
IsShowEnabled() && IsEditable() ? text : SColorDisabled,
paper, f ? Display::CURSOR : Display::FOCUS|Display::CURSOR);
w.End();
}