fixed finding class after class completion

git-svn-id: trunk@6514 -
This commit is contained in:
mattias 2005-01-08 16:27:59 +00:00
parent 66a176a847
commit d92ce8d36c
2 changed files with 10 additions and 1 deletions

View File

@ -2269,7 +2269,7 @@ var CleanCursorPos, Indent, insertPos: integer;
// due to insertions in fron of the class, the cursor position could // due to insertions in fron of the class, the cursor position could
// have changed // have changed
while (CursorNode<>nil) do begin while (CursorNode<>nil) do begin
if (CursorNode.Desc in [ctnTypeSection,ctnTypeDefinition,ctnClass]) if (CursorNode.Desc in [ctnTypeSection,ctnTypeDefinition])
then break; then break;
CursorNode:=CursorNode.Parent; CursorNode:=CursorNode.Parent;
end; end;

View File

@ -94,6 +94,8 @@ type
constructor Create(TheOwner: TComponent); override; constructor Create(TheOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
procedure Loaded; override; procedure Loaded; override;
procedure SaveChanges; virtual;
public
property ListObject: TObject read FListObject write SetListObject; property ListObject: TObject read FListObject write SetListObject;
property ListDirection: TTIListDirection read FListDirection write SetListDirection; property ListDirection: TTIListDirection read FListDirection write SetListDirection;
property DefaultRowHeight default 20; property DefaultRowHeight default 20;
@ -177,6 +179,8 @@ procedure TTICustomGrid.SetListObject(const AValue: TObject);
begin begin
if FListObject=AValue then exit; if FListObject=AValue then exit;
FListObject:=AValue; FListObject:=AValue;
if SaveOnChangeTIObject then
SaveChanges;
ReloadTIList; ReloadTIList;
end; end;
@ -237,6 +241,11 @@ begin
ReloadTIList; ReloadTIList;
end; end;
procedure TTICustomGrid.SaveChanges;
begin
end;
initialization initialization
// property editor for TTICustomPropertyGrid.TIObject // property editor for TTICustomPropertyGrid.TIObject
RegisterPropertyEditor(ClassTypeInfo(TPersistent), RegisterPropertyEditor(ClassTypeInfo(TPersistent),