Changes the confusing constant name for navFocusableButtons

git-svn-id: trunk@31877 -
This commit is contained in:
sekelsenmat 2011-08-05 14:21:15 +00:00
parent 2f092a33ad
commit 41fbd0d144
2 changed files with 3 additions and 3 deletions

View File

@ -1103,7 +1103,7 @@ type
TDBNavButtonSet = set of TDBNavButtonType; TDBNavButtonSet = set of TDBNavButtonType;
TDBNavButtonStyle = set of (nsAllowTimer, nsFocusRect); TDBNavButtonStyle = set of (nsAllowTimer, nsFocusRect);
TDBNavButtonDirection = (nbdHorizontal,nbdVertical); TDBNavButtonDirection = (nbdHorizontal,nbdVertical);
TDBNavigatorOption = (noFocusableButtons); TDBNavigatorOption = (navFocusableButtons);
TDBNavigatorOptions = set of TDBNavigatorOption; TDBNavigatorOptions = set of TDBNavigatorOption;
// for Delphi compatibility // for Delphi compatibility

View File

@ -270,7 +270,7 @@ begin
CurButton.Flat:=Flat; CurButton.Flat:=Flat;
CurButton.Index:=CurButtonType; CurButton.Index:=CurButtonType;
CurButton.Visible:=CurButtonType in FVisibleButtons; CurButton.Visible:=CurButtonType in FVisibleButtons;
if not (noFocusableButtons in FOptions) then CurButton.Parent := Self if not (navFocusableButtons in FOptions) then CurButton.Parent := Self
else CurButton.Parent := nil; else CurButton.Parent := nil;
end; end;
@ -297,7 +297,7 @@ begin
// update button properties // update button properties
CurFocusableButton.Index:=CurButtonType; CurFocusableButton.Index:=CurButtonType;
CurFocusableButton.Visible:=CurButtonType in FVisibleButtons; CurFocusableButton.Visible:=CurButtonType in FVisibleButtons;
if (noFocusableButtons in FOptions) then CurFocusableButton.Parent := Self if (navFocusableButtons in FOptions) then CurFocusableButton.Parent := Self
else CurFocusableButton.Parent := nil; else CurFocusableButton.Parent := nil;
end; end;