mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 00:00:39 +02:00
improved TGridColumn.GetDisplayName and updating column index in TCollection editor
git-svn-id: trunk@7608 -
This commit is contained in:
parent
abe8ca8638
commit
373eba5ee6
@ -3338,6 +3338,7 @@ begin
|
||||
if Collection=nil then exit;
|
||||
Collection.Add;
|
||||
FillCollectionListBox;
|
||||
UpdateCaption;
|
||||
Modified;
|
||||
end;
|
||||
|
||||
@ -3384,6 +3385,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
UpdateButtons;
|
||||
UpdateCaption;
|
||||
end;
|
||||
|
||||
procedure TCollectionPropertyEditorForm.MoveDownButtonClick(Sender: TObject);
|
||||
@ -3629,6 +3631,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
FillCollectionListBox;
|
||||
UpdateCaption;
|
||||
end;
|
||||
|
||||
procedure TCollectionPropertyEditorForm.Modified;
|
||||
|
@ -2994,10 +2994,10 @@ end;
|
||||
|
||||
function TColumn.GetDisplayName: string;
|
||||
begin
|
||||
if FFieldName='' then
|
||||
result := 'column'
|
||||
if FFieldName<>'' then
|
||||
Result:=FFieldName
|
||||
else
|
||||
Result:=FFieldName;
|
||||
Result:=inherited GetDisplayName;
|
||||
end;
|
||||
|
||||
function TColumn.GetDefaultAlignment: TAlignment;
|
||||
|
@ -7403,7 +7403,10 @@ end;
|
||||
|
||||
function TGridColumn.GetDisplayName: string;
|
||||
begin
|
||||
Result := 'GridColumn';
|
||||
if Title.Caption<>'' then
|
||||
Result := Title.Caption
|
||||
else
|
||||
Result := 'GridColumn';
|
||||
end;
|
||||
|
||||
function TGridColumn.GetDefaultAlignment: TAlignment;
|
||||
|
Loading…
Reference in New Issue
Block a user