mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 15:41:45 +02:00
carbon: draw mixed and checked state of buttons (radio and checkbox)
git-svn-id: trunk@12516 -
This commit is contained in:
parent
d643d77da7
commit
7c58c3e26b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user