Sign in Join

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

Mailing lists / lazarus / 2015-09

Initialization of an own component by "Save Project As ..."

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Michael W. Vogel

Hi,

I have a own component where I store a log filename with a relative path of my project.

This works fine with a own property editor. There I open a TSaveDialog and remove the ProjectPath ( FProjectPath :=
ExtractFilePath(LazarusIDE.ActiveProject.MainFile.Filename); ) from the TSaveDialog.FileName.

Now I have the problem, if I change the path of my project (Project -> Save Project As ...) the realative path is saved further in the component log filename (where a relative directory maybe not exists).

Is there a way to detect this changing, so that I can automatically initialize my component?

Thank youinadvance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150916/32dc23b3/attachment.html>