carbon: draw mixed and checked state of buttons (radio and checkbox)

git-svn-id: trunk@12516 -
This commit is contained in:
paul 2007-10-18 23:41:32 +00:00
parent d643d77da7
commit 7c58c3e26b

View File

@ -112,7 +112,13 @@ begin
ButtonDrawInfo.version := 0;
ButtonDrawInfo.State := GetDrawState(Details);
ButtonDrawInfo.kind := ButtonMap[Details.Part];
ButtonDrawInfo.value := kThemeButtonOff;
if IsMixed(Details) then
ButtonDrawInfo.value := kThemeButtonMixed
else
if IsChecked(Details) then
ButtonDrawInfo.value := kThemeButtonOn
else
ButtonDrawInfo.value := kThemeButtonOff;
ButtonDrawInfo.adornment := kThemeAdornmentNone;
LabelRect := RectToCGRect(R);