[Lazarus] GUI frontend to a console application

Sebastian Kraft sebastian_kraft at gmx.de
Tue Feb 24 14:06:15 CET 2009


On Dienstag, 24. Februar 2009 13:46:21 Graeme Geldenhuys wrote:
> On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys
>
> <graemeg.lists at gmail.com> wrote:
> > For example, Linux has many GUI frontends for programs like
> > makeiso, burncd, cdrecord, cvs, mpg123 etc...
>
> The most obvious example would probably be all the GUI frontends
> available for GDB debugger.  :-)
>
> I have no clue how to write such a GUI application. Anybody know?
>


Just take TProcess class and run your console app.  Then you can pass 
input and read output from there. 
I think there is some example in the wiki. 

For a more detailed example you can also look at my mplayer class. 
http://svn.berlios.de/svnroot/repos/cactusjukebox/source/mplayer.pas
It's an interface to mplayer console app.

Sebastian



More information about the Lazarus mailing list