mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 23:37:58 +02:00
IDE/TabOrder: Update the list when a component is renamed
This commit is contained in:
parent
e62036a5be
commit
5671244fe7
@ -73,6 +73,7 @@ type
|
||||
procedure PersistentDeleting({%H-}APersistent: TPersistent);
|
||||
procedure DeletePersistent(var {%H-}APersistent: TPersistent);
|
||||
procedure SetSelection(const ASelection: TPersistentSelectionList);
|
||||
procedure ComponentRenamed({%H-}AComponent: TComponent);
|
||||
end;
|
||||
|
||||
{ TTabOrderPropEditor }
|
||||
@ -140,6 +141,7 @@ begin
|
||||
GlobalDesignHook.AddHandlerPersistentDeleting(@PersistentDeleting);
|
||||
GlobalDesignHook.AddHandlerDeletePersistent(@DeletePersistent);
|
||||
GlobalDesignHook.AddHandlerSetSelection(@SetSelection);
|
||||
GlobalDesignHook.AddHandlerComponentRenamed(@ComponentRenamed);
|
||||
|
||||
IDEImages.AssignImage(ArrowDown, 'arrow_down');
|
||||
IDEImages.AssignImage(ArrowUp, 'arrow_up');
|
||||
@ -422,6 +424,11 @@ begin
|
||||
FUpdating := false;
|
||||
end;
|
||||
|
||||
procedure TTabOrderDialog.ComponentRenamed(AComponent: TComponent);
|
||||
begin
|
||||
SomethingChanged;
|
||||
end;
|
||||
|
||||
procedure TTabOrderDialog.PersistentAdded(APersistent: TPersistent; Select: boolean);
|
||||
begin
|
||||
SomethingChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user