[Lazarus] open pas file from command line

Michael Van Canneyt michael at freepascal.org
Wed Oct 27 12:41:43 CEST 2010



On Wed, 27 Oct 2010, Graeme Geldenhuys wrote:

> Op 2010-10-21 13:27, Hans-Peter Diettrich het geskryf:
>>
>> It should be possible, by adding a tool that sends the equivalent
>> drag-drop message(s) to Lazarus.
>
> Drag-drop in LCL is just as limited as in VCL, so a LOT of extra work will
> be required including extending the LCL interface. I know this because I
> just implemented cross-application and internal-application drag-drop in
> fpGUI, abstracting the DND API interface to work across Windows and Linux
> with single source code implementation in applications.

The solution is not DND; this would require an additional program.
Instead, the file association should be used, lazarus should be started, and
should detect that an instance is running, and use some kind of messaging
to tell the running instance to load an additional file.

Michael.




More information about the Lazarus mailing list