[fpc-pascal] File Association and opening with already running app

waldo kitty wkitty42 at windstream.net
Thu Apr 4 20:20:30 CEST 2013


On 4/4/2013 04:08, Graeme Geldenhuys wrote:
> Example of what I want to achieve. Say I have gEdit (Gnome editor) open
> and have a file loaded. Now if I am in a console and type 'gedit
> someotherfile.txt' [or double click a text file in Nautilus], it doesn't
> start a new instance of gedit, the existing instance opens the new file
> - gedit supports multiple opened files in a tabbed view.
>
> How do they accomplish this? I would like to implement something like
> that for fpGUI, and it must work under all fpGUI supported "desktop"
> platforms.

notepad++ does this also... or you can configure it to open multiple times... i 
don't know if you can pick out how notepad++ is doing this from their code... i 
don't know...

http://sourceforge.net/projects/notepad-plus/


this is one case where i like the single process with multiple tabs but i can't 
stand it in my browser(s)...



More information about the fpc-pascal mailing list