Hmm. Is an easier way? The point is that my package with visual
controls, has subcatalog "styles". In design mode, when user open
style manager (double click on control) then I would like to display
all files in that directory. For the first time I could ask the user
for the path to the package, but where then save this path? In
Lazarus's home directory?

2012/5/11 Mattias Gaertner <[email protected]>:
> On Fri, 11 May 2012 16:37:34 +0200
> Krzysztof <[email protected]> wrote:
>
>> Hi,
>>
>> I have own component editor which inherit from TComponentEditor. I
>> have connected it to the control. Everything works fine, my form
>> dialog pop up when I double click on control or from context menu. But
>> my form dialog have filelistbox and I want that it point to some
>> subfolder of this control package. How can I do that? I think this is
>> possible because lazarus can do this: when I open some installed
>> package and try to open some file, open dialog point to current opened
>> package.
>
> The paths are not compiled in.
> The IDE knows the path, because it has a history of lpk
> files.
> See ~/.lazarus/packagefiles.xml
>
> Another possibility is to pass the package path via run / run
> parameters / environment / user overrides
>
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to