Re: [Lazarus] GUI frontend to a console application

2009-02-25 Thread Graeme Geldenhuys
On Wed, Feb 25, 2009 at 7:04 AM, Funky Beast wrote: > > If the console app is self-written, you can use a mix of TProcess and > TSimpleIPCServer and TSimpleIPCClient. This is a very interesting approach. Thanks for mentioning it. I will definitely give this a try. And I love the benefit of the m

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Funky Beast
Graeme Geldenhuys wrote: > On Tue, Feb 24, 2009 at 3:08 PM, Martin Friebe wrote: >> It will be similar (probably easier) if the command line app is *not* >> interactive. > > The console apps we want to wrap works similar to the SubVersion (svn) > command line client. Execute with certain paramete

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 5:38 PM, Hans-Peter Diettrich wrote: > >> I didn't mean writing a GUI in the console. I meant a true GUI app >> (LCL or fpGUI based), which uses a console application as the backend. > > What then is your technical problem? I simply didn't know how to do it. But thanks to

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: > I didn't mean writing a GUI in the console. I meant a true GUI app > (LCL or fpGUI based), which uses a console application as the backend. What then is your technical problem? > For example, Linux has many GUI frontends for programs like makeiso, > burncd, cdrecord,

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: > On Tue, Feb 24, 2009 at 3:08 PM, Martin Friebe wrote: > >> It will be similar (probably easier) if the command line app is *not* >> interactive. >> > > The console apps we want to wrap works similar to the SubVersion (svn) > command line client. Execute with c

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread ik
It simple, you need to use TProcess (TProcessUTF8 if you must), and pipes. if you need input as well as output then you need to work with them both. The svn integration in Lazarus contain good example on how to do it. And you can also use my code: http://ik.homelinux.org/projects/files/mazrim-nx.t

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Vincent Snijders
Graeme Geldenhuys schreef: > On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys > 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 debugge

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 3:08 PM, Martin Friebe wrote: > > It will be similar (probably easier) if the command line app is *not* > interactive. The console apps we want to wrap works similar to the SubVersion (svn) command line client. Execute with certain parameters and read back the results, whi

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 2:50 PM, ik wrote: > > The svn integration in Lazarus contain good example on how to do it. > And you can also use my code: > http://ik.homelinux.org/projects/files/mazrim-nx.tar.gz Thanks Ido, that's exactly what I wanted to know. Never thought to look at the svn integrat

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 3:06 PM, Sebastian Kraft wrote: > > 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. This will come in very handy. Thanks Sebastian! Regar

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Martin Friebe
Graeme Geldenhuys wrote: > Hi, > > This is probably more related to unix systems... Has anybody got a > small sample application, some documentation or is a sample included > in Lazarus that shows how to go about writing a GUI frontend to a > console application? > While it isn't a "small" examp

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Sebastian Kraft
On Dienstag, 24. Februar 2009 13:46:21 Graeme Geldenhuys wrote: > On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys > > 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 G

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Henry Vermaak
2009/2/24 Graeme Geldenhuys : > On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys > 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 de

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 2:41 PM, Graeme Geldenhuys 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

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
On Tue, Feb 24, 2009 at 11:43 AM, Thierry Andriamirado wrote: > > FreeVision? (fpcsrc/2.2.x/packages/fv) I didn't mean writing a GUI in the console. I meant a true GUI app (LCL or fpGUI based), which uses a console application as the backend. For example, Linux has many GUI frontends for program

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Marco van de Voort
On Tue, Feb 24, 2009 at 12:43:43PM +0300, Thierry Andriamirado wrote: > > in Lazarus that shows how to go about writing a GUI frontend to a > > console application? > > FreeVision? (fpcsrc/2.2.x/packages/fv) > > I don't know if it's still working, I din't use it for years now and I > can't compil

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Thierry Andriamirado
Le Tue, 24 Feb 2009 10:46:43 +0200, Graeme Geldenhuys a écrit : > in Lazarus that shows how to go about writing a GUI frontend to a > console application? FreeVision? (fpcsrc/2.2.x/packages/fv) I don't know if it's still working, I din't use it for years now and I can't compile the example proj

[Lazarus] GUI frontend to a console application

2009-02-24 Thread Graeme Geldenhuys
Hi, This is probably more related to unix systems... Has anybody got a small sample application, some documentation or is a sample included in Lazarus that shows how to go about writing a GUI frontend to a console application? For our company I want to implement a GUI app to help them setup a few