- small bug in TThemeServices.IsChecked

git-svn-id: trunk@11597 -
This commit is contained in:
paul 2007-07-23 05:28:17 +00:00
parent 5492dc6a0d
commit 80c4aac4ea

View File

@ -1906,7 +1906,10 @@ function TThemeServices.IsChecked(Details: TThemedElementDetails): Boolean;
begin
Result := False;
if (Details.Element in [teButton]) then
Result := (Details.State > 4) and (Details.State < 9);
Result := (Details.State > 4) and (Details.State < 9)
else
if (Details.Element in [teToolBar]) then
Result := (Details.State > 4);
end;
function TThemeServices.IsMixed(Details: TThemedElementDetails): Boolean;