Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

Vote for Property Editors to stay on top

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leslie Kaye

I write to canvas your support for the idea that property editors should stay on top.

In Delphi property editors stay on top so that for instance you can have an ActionList editor open and continue to work on the source code editor underneath.

In Lazarus property editors are initially shown but soon become buried under other IDE windows so that either they are difficult to find or you forget them all together.

regards
Leslie

Example for Collection Editors: code should be modified in /lazarus/ideintf/propedits.pp

class function TCollectionPropertyEditor.ShowCollectionEditor(
  ACollection: TCollection;
  OwnerPersistent: TPersistent;
  const PropName: String): TCustomForm;
begin
  { // proposed code removed
  if CollectionForm = nil then
    CollectionForm := TCollectionPropertyEditorForm.Create(Application);
  CollectionForm.SetCollection(ACollection, OwnerPersistent, PropName);
  CollectionForm.EnsureVisible;
  } // end code removed
  // proposed  new code
  if CollectionForm = nil then
  begin
    Application.CreateForm(TCollectionPropertyEditorForm, CollectionForm);
    CollectionForm.FormStyle := fsStayOnTop;
  end;
  CollectionForm.SetCollection(ACollection, OwnerPersistent, PropName);
  CollectionForm.Show;
  // end new code
  Result := CollectionForm;
end;