Re: [Lazarus] Is there a separate mailing list for Lazarus developers?

2014-01-07 Thread Lukasz Sokol
On 06/01/14 22:33, Juha Manninen wrote: On Mon, Jan 6, 2014 at 7:17 PM, Lukasz Sokol el.es...@gmail.com wrote: [...] I think it all works well together with mailing lists and forum. OK I agree; Only PR is almost missing. Linux kernel and other major commercially backed projects get much more

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Schnell
On 12/28/2013 10:07 PM, Mark Morgan Lloyd wrote: Thanks, I'm reading stdin directly with a tight timeout using fpselect so it sounds like I should be able to manage something. This of course requests for a multithreaded application. (i.e. the threads that handle the blocking pipes

Re: [Lazarus] Is there a separate mailing list for Lazarus developers?

2014-01-07 Thread Michael Schnell
On 01/05/2014 02:44 AM, Bart wrote: such as the everlasting Unicode debates, I feel that main causes of these debates are (1) that the definitions in DXE are not nice (at least completely ignoring any portability issues), but fpc/Lazarus is forced to follow rather closely whatever Delphi

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 12/28/2013 10:07 PM, Mark Morgan Lloyd wrote: Thanks, I'm reading stdin directly with a tight timeout using fpselect so it sounds like I should be able to manage something. This of course requests for a multithreaded application. (i.e. the threads that handle the

Re: [Lazarus] Is there a separate mailing list for Lazarus developers?

2014-01-07 Thread Juha Manninen
On Tue, Jan 7, 2014 at 1:07 PM, Michael Schnell mschn...@lumino.de wrote: [...] that Lazarus only can use what fpc offers and thus Unicode awareness was implemented before fpc provided Unicode-Delphi compatible Strings, resulting in incompatibility in multiple directions. Don't hijack this

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Marc Santhoff
On Di, 2014-01-07 at 11:55 +0100, Michael Schnell wrote: In fact without a GUI binding currently you even can't use TTimer. Graeme G. once posted the source of or a link to a unit called ThreadTimer, in which there is TfpTimer. That one is independant from LCL. I don't know if the unit is part

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Van Canneyt
On Tue, 7 Jan 2014, Marc Santhoff wrote: On Di, 2014-01-07 at 11:55 +0100, Michael Schnell wrote: In fact without a GUI binding currently you even can't use TTimer. Graeme G. once posted the source of or a link to a unit called ThreadTimer, in which there is TfpTimer. That one is

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Schnell
On 01/07/2014 02:05 PM, Marc Santhoff wrote: Graeme G. once posted the source of or a link to a unit called ThreadTimer, in which there is TfpTimer. That one is independant from LCL. Unfortunately it only helps if thread communication (e.g. by TThread.Queue) is used to notify the main thread).

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Van Canneyt
On Tue, 7 Jan 2014, Michael Schnell wrote: On 01/07/2014 02:05 PM, Marc Santhoff wrote: Graeme G. once posted the source of or a link to a unit called ThreadTimer, in which there is TfpTimer. That one is independant from LCL. Unfortunately it only helps if thread communication (e.g. by

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Schnell
On 01/07/2014 02:22 PM, Michael Van Canneyt wrote: I think you misunderstand TThread.Queue. It does not notify the main thread. Yes it does (from the view of the user), when the environment is decently crafted (in fact it does the same as TThread.synchronize only that the thread does not wait

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Van Canneyt
On Tue, 7 Jan 2014, Michael Schnell wrote: On 01/07/2014 02:22 PM, Michael Van Canneyt wrote: I think you misunderstand TThread.Queue. It does not notify the main thread. Yes it does (from the view of the user), when the environment is decently crafted (in fact it does the same as

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 01/07/2014 03:11 PM, Michael Van Canneyt wrote: WakeMainThread may or may not be implemented. You should not count on that. Right you are. If you want to have decent event oriented Pascal programming (i.e. by using TThread.Synchronize and/or TThread.Queue for

Re: [Lazarus] (Source) in hint boxes

2014-01-07 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Mattias Gaertner wrote: On Sun, 05 Jan 2014 10:44:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: When the mouse is hovered over an identifier, a hint box pops up showing declaration and associated comment. Where is this implemented? What do you

Re: [Lazarus] (Source) in hint boxes

2014-01-07 Thread Martin Frb
On 07/01/2014 15:27, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Mattias Gaertner wrote: On Sun, 05 Jan 2014 10:44:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: When the mouse is hovered over an identifier, a hint box pops up showing declaration and associated

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Schnell
On 01/07/2014 04:16 PM, Paul Breneman wrote: So please share what you can. Thanks! Right now I am too busy with completely unrelated things to do the planned active NoGui Widget Type :-( . I just can provide some thoughts and offer to reply to any questions if anybody wants to get on

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Michael Schnell
On 01/07/2014 04:25 PM, Mark Morgan Lloyd wrote: The OP, i.e. I, did not mention doing any I/O in threads. He said: I'm reading stdin directly with a tight timeout IMHO, the Pascal way of handling such task is using a thread. -Michael -- ___

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-07 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 01/07/2014 04:25 PM, Mark Morgan Lloyd wrote: The OP, i.e. I, did not mention doing any I/O in threads. He said: I'm reading stdin directly with a tight timeout IMHO, the Pascal way of handling such task is using a thread. That's in the main code, not a

[Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread Richard Mace
Hi, Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is? E.g with the string the cat sat on the mat You could say replace word 3 with string stood so the result would be a string which was the

Re: [Lazarus] (Source) in hint boxes

2014-01-07 Thread Mark Morgan Lloyd
Martin Frb wrote: On 07/01/2014 15:27, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: Mattias Gaertner wrote: On Sun, 05 Jan 2014 10:44:04 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: When the mouse is hovered over an identifier, a hint box pops up showing declaration

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread K. P.
Not exactly - but it is trivially simple to write your own using http://lazarus-ccr.sourceforge.net/docs/rtl/strutils/extractwordpos.html Cheers, Kai Date: Tue, 7 Jan 2014 18:04:53 + From: richard.m...@gmail.com To: lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] Getting and setting

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-07 Thread Howard Page-Clark
On 07/01/2014 18:04, Richard Mace wrote: Hi, Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is? E.g with the string the cat sat on the mat If word delimiters are consistently all the same

Re: [Lazarus] Is there a separate mailing list for Lazarus developers?

2014-01-07 Thread Juha Manninen
On Tue, Jan 7, 2014 at 11:12 AM, Lukasz Sokol el.es...@gmail.com wrote: ...well here I disagree - go see [briefly] https://lwn.net - (one of) their editors (semi)regularly posts interesting topics dug out on lkml. That's 1000s% more press coverage than I've ever seen on FPC/Laz. PR gain is